cd /news/developer-tools/monitor-llm-costs-with-prometheus-gr… · home topics developer-tools article
[ARTICLE · art-84792] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Monitor LLM Costs with Prometheus & Grafana (Without a Proxy)

LLMeter, an open-source tool, enables developers to monitor LLM costs in Prometheus and Grafana without routing traffic through a proxy. By exposing a /metrics endpoint, it allows Prometheus to scrape cost data directly, integrating LLM spending into existing observability dashboards. The tool emphasizes async, out-of-band monitoring to avoid adding latency or points of failure.

read1 min views1 publishedAug 3, 2026

PLATAFORMA: Dev.to

If you're running any observability stack, you've probably got Prometheus and Grafana at the core. You've got your CPU usage, your memory, your network I/O... but what about your single biggest, most volatile line item? Your LLM bill.

Getting that data into your existing dashboards is a pain. Most solutions want you to route all your traffic through their proxy, adding a point of failure and latency you don't need.

It doesn't have to be that complicated.

I'm a big believer in async, out-of-band monitoring. Your app should fire and forget logging events, not wait for a monitoring service to respond. This is why when I built LLMeter, I made sure it could plug into the tools you already use.

Here's how you can pipe your LLM costs into Prometheus without a proxy.

LLMeter exposes a /metrics

endpoint that Prometheus can scrape, just like it does for your other services. All you need to do is add a new job to your prometheus.yml

:

scrape_configs:
  - job_name: 'llmeter'
    scrape_interval: 15s
    static_configs:
      - targets: ['your-llmeter-instance.local:3000']

That's it. Now you can build Grafana dashboards that show your LLM costs right next to your other metrics. You can see how a spike in traffic to a certain endpoint correlates with a spike in your Anthropic bill. You can finally see the real cost of that new AI feature you just shipped.

This approach gives you:

Stop flying blind. Your LLM bill is part of your infrastructure cost. It's time to start treating it that way.

── more in #developer-tools 4 stories · sorted by recency
── more on @llmeter 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/monitor-llm-costs-wi…] indexed:0 read:1min 2026-08-03 ·