Open dyx89 opened 1 year ago
Hey @dyx89,
Are you running the exporter witth --rundeck.cpu.stats
or RUNDECK_CPU_STATS=True
?
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"
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"
}
}
}
Opened this issue on Rundeck repo https://github.com/rundeck/rundeck/issues/8068. Let's see.
On Grafana Dashboard I can't get the CPU Usage.
metric:
TYPE rundeck_system_stats_cpu_loadAverage_ratio gauge
rundeck_system_stats_cpu_loadAverage_ratio{instance_address="rundeck:4440"} 0.0