Siddhant Gupta
10/04/2023, 5:57 AMprometheus:
config:
scrape_configs:
- job_name: "otel-collector"
scrape_interval: 60s
static_configs:
- targets: ["my-release-signoz-otel-collector:8888"]
- job_name: "jvm-collector"
scrape_interval: 60s
static_configs:
- targets: ["servicea-service:9090", "serviceb-service:9090"]
where servicea-service and serviceb-service is instrumented to send metrics to port 9090 using “jmx-prometheus-agent”.
• I am getting JVM related metrics but not specific to any service or any pod,
• Also I have installed prometheus server alongside in same namespace to get autogenerated queries, I replaced the configuration with the scrape config provided to otel-collector-metrics. I did so because the template that is provided in the blog does not pick all the pod related metrics with the default configuration. The prometheus is not able to produce plot for same queries that i am running on signoz and viceversa.