I’ve seen posts on here about monitoring application metrics, by collecting data from Prometheus or StatsD. That’d be great but I understand those could be much bigger scopes.
I’m pondering whether it’d be possible for the Kubernetes agent to introduce something like a K8sApplicationMetricSample that was populated from Golang EXPVAR metrics.
metrics. The standard way of annotating pods that support prometheus metrics is something like:
prometheus.io/path: /metrics prometheus.io/port: 8080 prometheus.io/scrape: true
I’m wondering if we could follow this model and introduce something like:
newrelic.com/scrape/golang/path: /debug/vars newrelic.com/scrape/golang/port: 8080 newrelic.com/scrape/golang/enabled: true
I’m open to any way to get custom application metrics out and would be happy to work on a PR to the agent if there’s a Github repo available to do this work?