Unable to Monitor jdbc_connections_active Metrics in SigNoz
TLDR Ragulraj is unable to monitor jdbc_connections_active metrics with SigNoz despite modifying configurations and adding dependencies. Srikanth provided troubleshooting steps and info on alternatives, but the issue remains unresolved.
Apr 13, 2023 (5 months ago)
Ragulraj
04:01 AMSrikanth
06:20 AMThis is not related to the metric.
jdbc-datasource
which creates spans whenever the java.sql.DataSource#getConnection
method is called. https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/b594b7f6f9936758294f11d172b41408a00cb7f0/docs/supported-libraries.md#d[…]sWhere is the source of metrics data? like micrometer or OTEL native or something else?
Srikanth
06:23 AMdb_client_connections_usage
with state either idle
/used
and there are several other which can be found here https://github.com/open-telemetry/opentelemetry-specification/blob/25f513dbea2810b[…]/specification/metrics/semantic_conventions/database-metrics.mdRagulraj
07:15 AM#!/bin/bash
java -Dlog-path=/logs -Dspring.config.location=file:/properties/fincluez-l2t-ms.yml,file:/properties/fincluez-t-ms-loan.yml -Dlogging.config=file:/properties/logback-spring-loan.xml -javaagent:/opentelemetry/opentelemetry-javaagent.jar -Dotel.metrics.exporter=none -Dotel.exporter.otlp.endpoint=http://${signoz_ip} -Dotel.instrumentation.jdbc-datasource.enabled=true -Dotel.resource.attributes="service.name=fincluez-l2t-loans" -jar loans-l2t-22.2.0-0.1.war
i gave those while running service , do i need to change Dotel.instrumentation.jdbc-datasource.enabled=true to Dotel.instrumentation.db.client.connections.usage=idle like this ?
Srikanth
07:18 AMThe
db_client_connections_usage
is a metric name, not a configuration option.>
Dotel.metrics.exporter=none
Remove this if you want metrics. If this is from our docs/blogs we will get it updated.
Ragulraj
09:49 AMSrikanth
10:01 AMRagulraj
11:33 AMSrikanth
11:35 AMRagulraj
11:37 AMSrikanth
11:39 AMRagulraj
11:41 AMRagulraj
01:04 PMSrikanth
01:06 PMYou need to fix this. Make sure the endpoint you are configuring is correct and reachable by collector.
Apr 14, 2023 (5 months ago)
Ragulraj
07:24 AMSrikanth
07:43 AMRagulraj
09:34 AMconfig:
scrape_configs:
- job_name: "otel-collector"
scrape_interval: 60s
static_configs:
- targets: ["otel-collector:8889"]
- job_name: "jvm-metrics"
scrape_interval: 10s
metrics_path: "/actuator/prometheus"
static_configs:
- targets: ["<IP of the machine:8090>"] here i should provide our service details or it should prometheus details
Ragulraj
11:37 AMSrikanth
11:53 AM10.53.34.50
and port 8090
you can verify if it emits metrics by curling with curl <http://10.52.34.50:8090/actuator/prometheus>
. And since there is already metric_path: "/actuator/prometheus"
covered in config, in the target you just need to provide host:port
where port is 8090
and host
is the host address where application service is running.Apr 17, 2023 (5 months ago)
Ragulraj
10:04 AMRagulraj
10:05 AMSrikanth
11:17 AMThe jdbc and hikari metrics are coming from the micrometer and need to be scraped. The rest of the metrics could be coming from OTLP.
> can u give me hint , that were i need to check failed to scrape
This is mostly like a network issue. Please make sure the host and port are correct and are reachable to the SigNoz collector.
Apr 18, 2023 (5 months ago)
Ragulraj
10:11 AMRagulraj
10:33 AMRagulraj
10:50 AM<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-api</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-api-metrics</artifactId>
<version>1.9.1-alpha</version>
</dependency>
Ragulraj
10:56 AMSrikanth
12:25 PMmetrics_path
in the configuration then should be /alpha-transformation-ms/actuator/prometheus
Ragulraj
12:36 PMSrikanth
12:51 PMcurl -X GET 10.53.34.50:3774/alpha-transformation-ms/actuator/prometheus
from the collector host, does it resolve and return any data? Did you have the micrometer setupApr 19, 2023 (5 months ago)
Ragulraj
03:43 AMRagulraj
03:43 AMRagulraj
04:00 AMSigNoz Community
Indexed 825 threads (61% resolved)
Similar Threads
Monitoring JDBC and HIKARI Metrics in SigNoz
Ragulraj is unable to monitor JDBC and HIKARI metrics in their spring boot application using SigNoz. Srikanth suggests configuring `scrape_configs` in `otel-collector-metrics`.
Troubleshooting SigNoz Auto-Instrumentation Configuration
igor is having trouble configuring auto-instrumentation for Java applications using SigNoz, with traces not appearing in the SigNoz UI. Prashant advises to check logs of the otel sidecar, use service name for endpoint, verify supported libraries, and test with telemetrygen. However, the issue still persists.
Headers in Monitoring HTTP Endpoints & Otel-Collector Error
Rohit asks about providing headers in monitoring HTTP endpoints and reports errors in otel-collector logs. Srikanth mentions headers are unsupported and requires more investigation for errors.
Resolving Signoz Query Service Error
Einav encountered an error related to a missing table in the Signoz service which was preventing data visibility in the UI. Srikanth guided them to restart specific components and drop a database table, which resolved the issue.
Displaying MongoDB Atlas Metrics on Signoz Dashboard
Div is unable to display MongoDB Atlas query time data on Signoz Dashboard. Ankit and vishal-signoz suggest checking compatible versions and using different packages, but the issue remains unresolved.


