benbjohnson / litestream

Streaming replication for SQLite.
https://litestream.io
Apache License 2.0
11.12k stars 256 forks source link

Metrics prometheus - can't reach metrics with Grafana #586

Closed martinschnurer closed 5 months ago

martinschnurer commented 5 months ago

I successfully run metrics, I see on my url /metrics all the txt stats. Okay, great. According to documentation it should be Prometheus endpoint. I installed grafana locally, but I couldn't get it running. It's always the same case 404 Not Found - There was an error returned querying the Prometheus API.... What in the world am I missing? Is this expected to work with Grafana? Am I having problem with grafana configuration that I installed through docker?

Sorry it's not completely related to Litestream, but to see some metrics would be great.

martinschnurer commented 5 months ago

It took a while I realized how Prometheus works. My bad. For others: /metrics from litestream is just a client, not a server. You need to run Prometheus server which will gather and save those metrics from client.