Hey all I have my OTEL collector running and it h...
# support
c
Hey all I have my OTEL collector running and it has this config
Copy code
...
  prometheus:
    config:
      global:
        scrape_interval: 60s
      scrape_configs:
        - job_name: otel-collector-binary
          static_configs:
            - targets:
              # - localhost:8888
        - job_name: "local-server-prom"
          scrape_interval: 10s
          tls_config:
            insecure_skip_verify: true
          scheme: https
          metrics_path: /metrics
          static_configs:
            - targets: ["localhost:8080"] <- Instead of this I have my actual base URL
...
It gets the metrics from /metrics endpoint. I am getting all the metrics in the Metrics tab which is okay. I need to have a Dashboard to have some visual representation for it. I tried importing the
hostmetrics.json
from the Dashboard Library. The issue is, I am getting no data in those panel while in the Metrics tab, all the needed data is present Can anyone help with that?
1
n
Hey @Chandeep Gulati, are you using dot metrics? The dashboard library is still being updated for the dot metrics migration. Can you please check once in the Dashboard what metrics are being used
c
It shows this
if this helps
n
c
Yes
n
This one has been updated and should have work. Can you please share a screenshot of the metrics tab with any of the shared metrics
c
This is from the metrics tab itself
n
can you please share a screenshot of any panel with these metrics
Can you check what the host.name you're using
c
host.name was coming as blank.
We close this ticket. I was able to figure it out. Thanks
This one is the only thing left for me to take it to prod: https://signoz-community.slack.com/archives/C01HWQ1R0BC/p1753344340452819
l
@Chandeep Gulati where you able to get that dashboard working to see how the otel-collector is doing?
c
Yes
l
What did it take?
c
Had to run the otel collector on my server
and instead of this metrics_path
This did the job:
Copy code
receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
      http:
        endpoint: 0.0.0.0:4318
  hostmetrics:
    collection_interval: 30s
    scrapers:
      cpu: {}
      disk: {}
      load: {}
      filesystem: {}
      memory: {}
      network: {}
      paging: {}