We are using the [[outputs.prometheus_client]] plugin in telegraf. The plugin itself is working as expected.
From my experience, most installations use the prometheus-operator when deploying prometheus on k8s.
prometheus-operator uses a ServiceMonitor CRD to automatically detect metric endpoints (here: endpoint exposed by [outputs.prometheus_client]])
This ServiceMonitor is normally deployed with the application to be monitored. As an example see ServiceMonitor template in Grafana Chart. So it would be desirable to have a ServiceMonitor template added to the chart.
As a workaround i manually deployed a ServiceMonitor manifest after deploying the telegraf chart.
Let me note that i did not read your ``Contributing" section yet. If it helps i can provide a suggestion for ServiceMonitor template, just let me know.
We are using the
[[outputs.prometheus_client]]
plugin in telegraf. The plugin itself is working as expected.From my experience, most installations use the prometheus-operator when deploying prometheus on k8s. prometheus-operator uses a
ServiceMonitor
CRD to automatically detect metric endpoints (here: endpoint exposed by[outputs.prometheus_client]]
)This ServiceMonitor is normally deployed with the application to be monitored. As an example see ServiceMonitor template in Grafana Chart. So it would be desirable to have a
ServiceMonitor
template added to the chart.As a workaround i manually deployed a ServiceMonitor manifest after deploying the telegraf chart.
See also:
Let me note that i did not read your ``Contributing" section yet. If it helps i can provide a suggestion for ServiceMonitor template, just let me know.