Is There Any Way to Send Railway's Built-in Service Metrics to Grafana?

11 days ago

I'm using grafana for my server, service, and application telemetry on DigitalOcean right now, and while my applications could still send their metrics to Grafana if I ran them on Railway, I would lose out on the ability to see my server metrics like CPU and memory usage in Grafana with the rest of my application metrics.

Is there any way I could deploy a service that can use some Railway API or endpoint of some sort to collect the railway service metrics?

Solved

3 Replies

Railway
BOT

11 days ago

We do not currently expose service metrics (CPU, memory, network, disk) through the public API for external consumption, so there is no supported way to pipe those metrics into Grafana. You can explore the full API schema via the GraphiQL playground to confirm, and you can use webhooks to receive threshold-based monitor alerts, but time-series metric data is only available in the built-in observability dashboard.


Status changed to Awaiting User Response Railway 11 days ago


11 days ago

That bot is very wrong. The metrics are all available via our API, so it would be quite easy to build an exporter.


11 days ago

Awesome! star2 emoji

It did helpfully link to the GraphQL docs at least, which I got suspicious about it being wrong after starting to look into them. smile emoji


Status changed to Awaiting Railway Response Railway 11 days ago


Status changed to Solved zicklag 11 days ago


Loading...