Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU load avrage 0.0 on grafana #60

Open
dyx89 opened this issue Dec 29, 2022 · 4 comments
Open

CPU load avrage 0.0 on grafana #60

dyx89 opened this issue Dec 29, 2022 · 4 comments

Comments

@dyx89
Copy link

dyx89 commented Dec 29, 2022

On Grafana Dashboard I can't get the CPU Usage.
image

metric:

TYPE rundeck_system_stats_cpu_loadAverage_ratio gauge

rundeck_system_stats_cpu_loadAverage_ratio{instance_address="rundeck:4440"} 0.0

@phsmith
Copy link
Owner

phsmith commented Dec 29, 2022

Hey @dyx89,
Are you running the exporter witth --rundeck.cpu.stats or RUNDECK_CPU_STATS=True?

@dyx89
Copy link
Author

dyx89 commented Dec 29, 2022

Hey,
Yup.

These are my envs:

      env:
        - name: RUNDECK_URL
          value: "http://rudneck:4440"
        - name: RUNDECK_EXPORTER_HOST
          valueFrom:
            fieldRef:
              fieldPath: status.podIP
        - name: RUNDECK_EXPORTER_PORT
          value: "9620"
        - name: RUNDECK_TOKEN
          value: "token"
        - name: RUNDECK_SKIP_SSL
          value: "true"
        - name: RUNDECK_PROJECTS_EXECUTIONS
          value: "true"
        - name: RUNDECK_CPU_STATS
          value: "true"
        - name: RUNDECK_MEMORY_STATS
          value: "true"
        - name: RUNDECK_API_VERSION
          value: "41"

@phsmith
Copy link
Owner

phsmith commented Dec 29, 2022

I'm trying to figure out what happened...
It's not a problem in the exporter, for some reason Rundeck API isn't showing the CPU Load Average as expected.

curl -s -H "X-Rundeck-Auth-Token: TOKEN" -H "Accept: application/json" http://localhost:4440/api/41/system/info | jq .
{
  "system": {
    "executions": {
      "active": "true",
      "executionMode": "active"
    },
    "extended": null,
    "healthcheck": {
      "contentType": "application/json",
      "href": "http://localhost:4440/api/41/metrics/healthcheck"
    },
    "jvm": {
      "implementationVersion": "11.0.17+8-post-Ubuntu-1ubuntu220.04",
      "name": "OpenJDK 64-Bit Server VM",
      "vendor": "Ubuntu",
      "version": "11.0.17"
    },
    "metrics": {
      "contentType": "application/json",
      "href": "http://localhost:4440/api/41/metrics/metrics?pretty=true"
    },
    "os": {
      "arch": "amd64",
      "name": "Linux",
      "version": "6.1.1-arch1-1"
    },
    "ping": {
      "contentType": "text/plain",
      "href": "http://localhost:4440/api/41/metrics/ping"
    },
    "rundeck": {
      "apiversion": "41",
      "base": "/home/rundeck",
      "build": "4.8.0-20221110",
      "buildGit": "v4.8.0-0-g49731bb",
      "node": "4c7f03e81de5",
      "serverUUID": "a14bc3e6-75e8-4fe4-a90d-a16dcc976bf6",
      "version": "4.8.0-20221110"
    },
    "stats": {
      "cpu": {
        "loadAverage": {
          "average": 0,
          "unit": "percent"
        },
        "processors": 16
      },
      "memory": {
        "free": 706440576,
        "max": 11936989184,
        "total": 1107296256,
        "unit": "byte"
      },
      "scheduler": {
        "running": 2,
        "threadPoolSize": 10
      },
      "threads": {
        "active": 70
      },
      "uptime": {
        "duration": 38067,
        "since": {
          "datetime": "2022-12-29T12:51:33Z",
          "epoch": 1672318293031,
          "unit": "ms"
        },
        "unit": "ms"
      }
    },
    "threadDump": {
      "contentType": "text/plain",
      "href": "http://localhost:4440/api/41/metrics/threads"
    },
    "timestamp": {
      "datetime": "2022-12-29T12:52:11Z",
      "epoch": 1672318331098,
      "unit": "ms"
    }
  }
}

@phsmith
Copy link
Owner

phsmith commented Dec 29, 2022

Opened this issue on Rundeck repo rundeck/rundeck#8068.
Let's see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants