Before you begin
- Connect GitHub for the same organization. Blacksmith requires it.
- Create an organization token with
blacksmith org-token create. - Note the organization login exactly as it appears on GitHub. It is case-sensitive.
- Optional: find your price per billable minute on your Blacksmith invoice.
Connect
- Open Settings > Integrations and pick Blacksmith.
- Name the connection and pick the tenant these charges belong to.
- Enter the organization token as
BLACKSMITH_API_TOKENand the organization login asBLACKSMITH_ORG. - Optional: enter your price per billable minute in USD as
BLACKSMITH_RATE_PER_MINUTE. - Select Connect.
What you see
Usage appears per day per organization. CostGraph shows Blacksmith’s billed cost when your token can read it, and billable minutes otherwise. With a rate set, minutes are priced at your rate. Each sync reads yesterday and today, so history starts from the day you connect.Push it yourself
Send the charges to CostGraph as FOCUS records instead. Push FOCUS data covers the connection id, thefocus:write key, and the request shape.
Run the exporter
Rather than build that request yourself, run our exporter. It reads Blacksmith on a schedule and pushes the records for you, wherever you want to run it: a container, a KubernetesCronJob, or a binary on a machine you already have.