We have a GO application with installed Prometheus client and Telegraf container with Prometheus input plugin trying to fetch default metrics. Instrumented app using promehteus guide for instrumenting go app,
However when starting telegraf container, it is unable to fetch metrics from the endpoint. My application is exposed as service and telegraf conf are attached. Please let me know what I’m missing here.
[[inputs.prometheus]]
urls = [“https://sample-service.test.svc.cluster.local:2112/metrics”]
Tried using kubernetes_services as well, which are not working
[[outputs.file]]
files = [“stdout”]
data_format = “json”