Hi, I want to scrape custom application metrics f...
# support
v
Hi, I want to scrape custom application metrics from their service endpoints with signoz. I am using service monitors CRD to do this with Prometheus currently. I don't want my Otel agent to scrape this Prometheus for the metrics. I want it to directly scrape the app endpoints attached to the service. Can I configure my Otel agent to collect these data? these are my requirements. 1. the scrape should not happen on the service endpoint instead it should hit the pod IP directly and the metrics collected should have the pod name label (similar to the service monitors implementation in Prometheus) 2. The scrape endpoints may change depending on the service. I want to have a service discovery mechanism for scrape config. Any tips or insights would be much appreciated!
1
Hi, Iam new here. Can somebody help me with this?
p
By default, you should be able to scrape metrics using
<http://signoz.io/scrape|signoz.io/scrape>
pod annotation.
That should auto scrape metrics from the port mentioned with
<http://signoz.io/port|signoz.io/port>
pod annotation, and include the pod metadata.
v
Its working, This is great, Thanks a lot @Prashant Shahi
🙌 1