#support

Monitoring JVM Metrics with Signoz in Kubernetes Cluster

TLDR Ragul had trouble monitoring JVM metrics in their Kubernetes cluster with Signoz using Helm. Srikanth advised modifying the scrape config in values.yaml and checking the host:port/path.

Powered by Struct AI
12
3mo
Solved
Join the chat
Jun 05, 2023 (3 months ago)
Ragul
Photo of md5-001a6b8b05601dc8ac56c5f364768cc1
Ragul
05:31 PM
Hi team , I've just installed signoz in k8s cluster using helm. i need to monitor metrics for my spring boot microservice ,and I can see my microservice name in services section for that i was trying to monitor metrics listed in link https://signoz.io/docs/tutorial/jvm-metrics/#available-metrics-that-you-can-monitor . in this i am getting values for only few metrics for other i am not getting data i have added screenshot of metric which i am not getting data , should i add additional config for this metrics . please suggest some solution for getting this metrics value
Image 1 for Hi team , I've just installed signoz in k8s cluster using  helm. i need to monitor metrics for  my spring boot microservice ,and I can see my microservice name  in services section for that i was trying to monitor metrics listed in link <a href="https://signoz.io/docs/tutorial/jvm-metrics/#available-metrics-that-you-can-monitor" target="_blank">https://signoz.io/docs/tutorial/jvm-metrics/#available-metrics-that-you-can-monitor</a> . in this i am getting values for only few metrics for other i am not getting data i have added screenshot of metric which i am not  getting data , should i add additional config for this metrics . please suggest some solution for getting this metrics value
Jun 06, 2023 (3 months ago)
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
12:47 AM
What does your scrape config look like? There is probably some n/w issue while scraping.
Ragul
Photo of md5-001a6b8b05601dc8ac56c5f364768cc1
Ragul
04:14 AM
scrape config is default one from helm values.yaml . i have not did any changes
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
07:47 AM
The default one from values.yaml doesn’t scrape the metrics exposed by general applications. You need to configure it with the endpoints where you applications emit metrics.
Ragul
Photo of md5-001a6b8b05601dc8ac56c5f364768cc1
Ragul
10:32 AM
OK
10:34
Ragul
10:34 AM
if yes , please help me in overiding the values.yaml
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
11:24 AM
Yes, you need to add an additional scrape config in values.yaml. It would look like following.
otelCollectorMetrics:
  config:
    receivers:
      # prometheus scrape config
      prometheus:
        config:
          scrape_configs:
            ... <existing_configs_here>
            - job_name: 'applications-metrics'
              scrape_interval: 10s
              metrics_path: <your probe endpoint>
              static_configs:
              - targets:
Ragul
Photo of md5-001a6b8b05601dc8ac56c5f364768cc1
Ragul
04:59 PM
I added this above config in values.yaml , and upgraded helm using the command -> helm -n platform upgrade my-release signoz/signoz -f values.yaml . but still i am not getting those above mentioned metrics
Image 1 for I added this above config in values.yaml , and upgraded helm using the command -&gt; helm -n platform upgrade my-release signoz/signoz -f values.yaml . but still i am not getting those above mentioned metrics
05:01
Ragul
05:01 PM
for cross check in signoz clickhouse i tried with -> SELECT name
FROM
(
SELECT DISTINCT JSONExtractString(labels, 'name') AS name
FROM signoz_metrics.time_series_v2
) AS tmp1
WHERE name ILIKE '%jdbc%' with this query
05:02
Ragul
05:02 PM
No data where there
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
06:35 PM
Make sure the host:port/path is valid and outputs the metrics.