Missing Metrics in Springboot Micro-Service Instrumentation
TLDR Jose reports missing metrics in a springboot micro-service instrumentation. Srikanth and Ankit suggest checking the metrics collection interval and updating the PromQL query.
Mar 06, 2023 (6 months ago)
Jose
11:57 PMhttp_server_requests_seconds_count{exception="None",method="PUT",outcome="SUCCESS",status="200",uri="/api/v1/payment-orders/{id}/cancel",} 12.0
http_server_requests_seconds_sum{exception="None",method="PUT",outcome="SUCCESS",status="200",uri="/api/v1/payment-orders/{id}/cancel",} 0.919633034
But I I try to run PromQL
sum(rate(http_server_requests_seconds_count{uri=~"{{.uri}}"}[1m]))
I don't get any data.I've instrumented other services the same way and I'm getting that metric in particular.
Also I'd like to mention that I'm getting traces from that service
Mar 07, 2023 (6 months ago)
Srikanth
01:49 AM[1m]
in the query. If they are collected at same or higher interval then you will not see any data.Jose
01:59 AMJose
01:59 AMSrikanth
02:18 AMuri
is non null value that returns the results.Srikanth
02:18 AMI day in the
[1m]
here?Ankit
10:34 AMSrikanth
11:29 AM[1m]
selection in the promQL. If the metrics are collected every 60s or higher, then promql won’t return data. It has to be something higher. You can verify this by running sum(rate(signoz_calls_total{}[1m]))
vs sum(rate(signoz_calls_total{}[2m]))
in testbed.Ankit
11:40 AM[1m]
to [2m]
in promql?SigNoz Community
Indexed 825 threads (61% resolved)
Similar Threads
Unable to Monitor jdbc_connections_active Metrics in SigNoz
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.
Frontend Dashboard Metrics Not Displaying Due to Timezone Issue
James experienced missing metric graphs on their dashboard. Srikanth helped troubleshoot, discovering a timezone discrepancy that caused the issue.
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.
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`.
Integrating TimescaleDB Prometheus Data with SigNoz
Milan was unable to view TimescaleDB Prometheus data in SigNoz. With suggestions from Srikanth and Prashant, they identified and fixed a configuration error by removing the unnecessary evaluation_interval setting.
