Expose prometheus metrics #2001
Labels
Configuration
Regarding the server setup JSON
Feature Request
Requested functionality
Ready
Issue ready to be addressed
REST
The JSON REST API for server control
Security
Issue pertaining to Authentication/Authorization or NTC (Never Trust the Client)
Milestone
Is your feature request related to a problem? Please describe.
I like graphs. We all like graphs. And alerts, too! I use Grafana to make me graphs and scream at me when something is wrong. I use Prometheus to feed Grafana most of my crap and also maybe use it to scream at me when something is wrong. I'd love TGS to expose a metrics reporting endpoint so I can collect metrics and get yelled at on a regular basis when Dream Daemon runs out of memory.
Describe the solution you'd like
Allow TGS to bind to a second port/address that exposes a
/metrics
endpoint in line with the Prometheus documentation. Reporting memory usage is a must, but there's a lot of metrics that could get crammed into here so my ops can get alerted when's a good time to figure out who poured gasoline all over the server.Describe alternatives you've considered
I could write a shim on my side to curl TGS and emit these metrics for me, but it might make sense to just build this endpoint directly into TGS since so many other routing/deployment/infrastructure daemons provide a similar feature.
Additional context
n/a
The text was updated successfully, but these errors were encountered: