Question about metrics
Hello, I know you can view metrics on the dashboard of the project, but I was wondering if it's possible to retrieve them via the API or maybe export them some other way?
I am looking to be able to see the memory usage and cpu.
If this is not possible, I understand, just wanted to ask.
Thank you!
15 Replies
Project ID:
cf5d5b88-d2e7-42b1-9238-2fa78bf49058
cf5d5b88-d2e7-42b1-9238-2fa78bf49058
you absolutely can, just look at the api calls the site makes you open the metrics tab of your service, then instead of the internal endpoint the site uses, you just use
https://backboard.railway.app/graphql/v2
with the same queryOHH AWESOME!
Thank you so much
I'm curious, did you know about the metrics tab in the service?
Talking about this one correct? https://i.gyazo.com/52fdc63d7bd3f85d1e06b32bea961857.png
yes, did you know about that before this thread?
I did!
I need to export the metrics for my own alerting π
thats what I need it for π
did you know someone from the community created a discord bot that will show you your usage?
no way
That is very cool, is it in this server?
I find, one sec
thank you!
here you go
https://railway.app/template/alYGiV
there's more information on the github
https://github.com/LaCrak27/RailwayBot
though that's a little more for local development of the bot
thanks so much π
i will check this out, I believe I found the graphql endpoint as well π thanks again Brody
no problem!