Skip to content

[BUG] Metric "opensearch_os_cpu_percent" not reporting a valid value #386

@JakeHardy14

Description

@JakeHardy14

What is the bug?
Having just upgraded to 3.2.0, I can see that previous Grafana dashboards reporting on the value of "opensearch_os_cpu_percent" are now returning a value of -1.0 for all nodes in the cluster which makes it impossible to observe the CPU usage.

# HELP opensearch_os_cpu_percent CPU usage in percent
# TYPE opensearch_os_cpu_percent gauge
opensearch_os_cpu_percent{cluster="Stage",node="Stage-opensearch-data-node-0",nodeid="Vl0KPIV2QGGvq8fEv0Grjg",} -1.0

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Install a 3.2.0 Opensearch Cluster
  2. Add the 3.2.0 opensearch-prometheus-exporter
  3. Inspect the output on {node}:9200/_prometheus/metrics
  4. Observe the value output for "opensearch_os_cpu_percent"

What is the expected behavior?
The value should be a float between 0 and 100

What is your host/environment?

  • OS: RedHat 8.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions