Coder Social home page Coder Social logo

No exported_pod in metrics about dcgm-exporter HOT 11 CLOSED

nvidia avatar nvidia commented on September 23, 2024
No exported_pod in metrics

from dcgm-exporter.

Comments (11)

Muscule avatar Muscule commented on September 23, 2024

Which version of dcgm-exporter can I use to see exported_pod?

from dcgm-exporter.

Muscule avatar Muscule commented on September 23, 2024

I use dcgm-exporter-2.4.5-2.6.7-ubuntu20.04

from dcgm-exporter.

Muscule avatar Muscule commented on September 23, 2024

2.2.9-2.4.0-ubuntu20.04 didn't help

Nvidia gpu-operator 1.11.0

from dcgm-exporter.

jojotong avatar jojotong commented on September 23, 2024

You can check your servicemonitor config. Do you add honorLabels: true

from dcgm-exporter.

Muscule avatar Muscule commented on September 23, 2024

You can check your servicemonitor config. Do you add honorLabels: true

Yes

from dcgm-exporter.

Muscule avatar Muscule commented on September 23, 2024

curl localhost:9400/metrics gives nothing with "exported"

from dcgm-exporter.

Muscule avatar Muscule commented on September 23, 2024

Is there any solution?

from dcgm-exporter.

wotkddl21 avatar wotkddl21 commented on September 23, 2024

@Muscule
The exported_pod label is made by the prometheus, which is called server-side labels. So it is right that 'curl localhost:9400/metrics gives nothing with "exported"'.
Let assume you set the honor_label to "false".
Then when the prometheus scrapes the metrics, there could be some rules to relabel the source labels.
If you are using the servicemonitor to scrape dcgm-exporter in the kubernetes, then the additional label "node", "pod" and "namespace" would be created by the prometheus.
So these new labels will crash with the source labels from the dcgm-exporter.
In this case, the prometheus adds the prefix "exported" to the labels from the scraped data.

But you set honor_label to true, then the prometheus won't make server-side labels, which is keeping the source labels.

Check the link below
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config

# If honor_labels is set to "true", label conflicts are resolved by keeping label
# values from the scraped data and ignoring the conflicting server-side labels.
#
# If honor_labels is set to "false", label conflicts are resolved by renaming
# conflicting labels in the scraped data to "exported_<original-label>" (for
# example "exported_instance", "exported_job") and then attaching server-side
# labels. 

from dcgm-exporter.

mossad-zika avatar mossad-zika commented on September 23, 2024

source metrics don't show me the info

Screenshot 2023-08-11 at 20 03 11

from dcgm-exporter.

mossad-zika avatar mossad-zika commented on September 23, 2024

SM also doesn't do any relabel by default

https://github.com/NVIDIA/dcgm-exporter/blob/main/deployment/templates/service-monitor.yaml

from dcgm-exporter.

mossad-zika avatar mossad-zika commented on September 23, 2024
extraEnv:
  - name: "DCGM_EXPORTER_KUBERNETES"
    value: "true"
  - name: "DCGM_EXPORTER_KUBERNETES_GPU_ID_TYPE"
    value: "uid"

seems working, but testing now

BTW: nvidia's products are awesome and docs are total shit

from dcgm-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.