R
Railwayβ€’14mo ago
twizycat

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
Percy
Percyβ€’14mo ago
Project ID: cf5d5b88-d2e7-42b1-9238-2fa78bf49058
twizycat
twizycatOPβ€’14mo ago
cf5d5b88-d2e7-42b1-9238-2fa78bf49058
Brody
Brodyβ€’14mo ago
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 query
twizycat
twizycatOPβ€’14mo ago
OHH AWESOME! Thank you so much
Brody
Brodyβ€’14mo ago
I'm curious, did you know about the metrics tab in the service?
twizycat
twizycatOPβ€’14mo ago
Brody
Brodyβ€’14mo ago
yes, did you know about that before this thread?
twizycat
twizycatOPβ€’14mo ago
I did! I need to export the metrics for my own alerting πŸ™‚ thats what I need it for πŸ™‚
Brody
Brodyβ€’14mo ago
did you know someone from the community created a discord bot that will show you your usage?
twizycat
twizycatOPβ€’14mo ago
no way That is very cool, is it in this server?
Brody
Brodyβ€’14mo ago
I find, one sec
twizycat
twizycatOPβ€’14mo ago
thank you!
Brody
Brodyβ€’14mo ago
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
twizycat
twizycatOPβ€’14mo ago
thanks so much πŸ™‚ i will check this out, I believe I found the graphql endpoint as well πŸ™‚ thanks again Brody
Brody
Brodyβ€’14mo ago
no problem!
Want results from more Discord servers?
Add your server