{"id":29569218,"url":"https://github.com/teaglebuilt/llm_cost_exporter","last_synced_at":"2025-12-31T14:11:06.694Z","repository":{"id":287218409,"uuid":"963986525","full_name":"teaglebuilt/llm_cost_exporter","owner":"teaglebuilt","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-10T15:32:43.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T16:04:38.701Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teaglebuilt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-10T14:12:28.000Z","updated_at":"2025-04-10T15:32:47.000Z","dependencies_parsed_at":"2025-04-10T16:04:43.491Z","dependency_job_id":null,"html_url":"https://github.com/teaglebuilt/llm_cost_exporter","commit_stats":null,"previous_names":["teaglebuilt/llm_cost_exporter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/teaglebuilt/llm_cost_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teaglebuilt%2Fllm_cost_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teaglebuilt%2Fllm_cost_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teaglebuilt%2Fllm_cost_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teaglebuilt%2Fllm_cost_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teaglebuilt","download_url":"https://codeload.github.com/teaglebuilt/llm_cost_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teaglebuilt%2Fllm_cost_exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265871435,"owners_count":23842028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-19T01:39:32.072Z","updated_at":"2025-12-31T14:11:06.662Z","avatar_url":"https://github.com/teaglebuilt.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LLM Cost Exporter\n\nMonitor cost metrics for llm providers that can be scraped and ingested by prometheus.\n\n**Supported Providers**\n* `openai`\n* `anthropic`\n* `bedrock`\n\n## Instructions\n\n### Prerequisites\n\nObvisouly, this is a prometheus exporter so make sure you have prometheus up and running.\n\n#### Running on Kubernetes\n\nTo understand how to set this up on kubernetes beyond the basic helm installation, then refer to this example for [Cost Alerting on Kubernetes](./examples/k8s-cost-alerting/README.md)\n\n**Installing helm chart**\n \n* `OpenAI`\n     ```\n    helm upgrade --install llm-cost-monitor ./chart \\\n      --namespace ${NAMESPACE} \\\n      --set providers.openai.secretName=openai-api-secret\n    ```\n* `Anthropic`\n    ```\n    helm upgrade --install llm-cost-monitor ./chart \\\n      --namespace ${NAMESPACE} \\\n      --set providers.anthropic secretName=anthropic-api-secret\n    ```\n* `AWS Bedrock`\n\n  - with credentials\n    ```\n    helm upgrade --install llm-cost-monitor ./llm-cost-monitor \\\n      --namespace llm-monitoring \\\n      --set providers.bedrock.credentials.enabled=true \\\n      --set providers.bedrock.credentials.aws_access_key_id=$AWS_ACCESS_KEY_ID \\\n      --set providers.bedrock.credentials.aws_secret_access_key=$AWS_SECRET_ACCESS_KEY\n    ```\n  - with multiple accounts\n    ```\n    helm upgrade --install llm-cost-monitor ./chart \\\n      --namespace llm-monitoring \\\n      --set providers.bedrock.enabled=true \\\n      --set providers.bedrock.iam.roleArn=arn:aws:iam::123456789012:role/bedrock-access-role\n    ```\n\n#### Running with Docker\n\nFeel free to use the [Compose Stack Example](./examples/compose-stack/README.md) for a live local example\n\nOtherwise, here is the basic instructions.\n\nadd the host of the llm exporter to your `prometheus.yml`.\n\n```yaml\nscrape_configs:\n  - job_name: 'llm_cost_monitor'\n    static_configs:\n      - targets: ['localhost:8000']\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteaglebuilt%2Fllm_cost_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteaglebuilt%2Fllm_cost_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteaglebuilt%2Fllm_cost_exporter/lists"}