mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-20 11:39:04 +02:00
collector: publish base units and _total counter names (#2743)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -33,6 +33,7 @@ collector:
|
||||
object: "Memory"
|
||||
counters:
|
||||
- name: "Cache Faults/sec"
|
||||
metric: windows_performancecounter_memory_cache_faults_total # optional
|
||||
type: "counter" # optional
|
||||
```
|
||||
|
||||
@@ -50,11 +51,11 @@ YAML:
|
||||
instance_label: "core"
|
||||
counters:
|
||||
- name: "% Processor Time"
|
||||
metric: windows_performancecounter_processor_information_processor_time # optional
|
||||
metric: windows_performancecounter_processor_information_processor_time_total # optional
|
||||
labels:
|
||||
state: active
|
||||
- name: "% Idle Time"
|
||||
metric: windows_performancecounter_processor_information_processor_time # optional
|
||||
metric: windows_performancecounter_processor_information_processor_time_total # optional
|
||||
labels:
|
||||
state: idle
|
||||
- name: memory
|
||||
@@ -62,7 +63,8 @@ YAML:
|
||||
type: "formatted"
|
||||
counters:
|
||||
- name: "Cache Faults/sec"
|
||||
type: "counter" # optional
|
||||
metric: windows_performancecounter_memory_cache_faults_per_second # optional
|
||||
type: "gauge" # optional
|
||||
```
|
||||
|
||||
</details>
|
||||
@@ -82,14 +84,14 @@ YAML:
|
||||
"counters": [
|
||||
{
|
||||
"name": "% Processor Time",
|
||||
"metric": "windows_performancecounter_processor_information_processor_time",
|
||||
"metric": "windows_performancecounter_processor_information_processor_time_total",
|
||||
"labels": {
|
||||
"state": "active"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "% Idle Time",
|
||||
"metric": "windows_performancecounter_processor_information_processor_time",
|
||||
"metric": "windows_performancecounter_processor_information_processor_time_total",
|
||||
"labels": {
|
||||
"state": "idle"
|
||||
}
|
||||
@@ -103,7 +105,8 @@ YAML:
|
||||
"counters": [
|
||||
{
|
||||
"name": "Cache Faults/sec",
|
||||
"type": "counter"
|
||||
"metric": "windows_performancecounter_memory_cache_faults_per_second",
|
||||
"type": "gauge"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -202,59 +205,59 @@ Otherwise, they would produce identical series and the collector fails to start.
|
||||
### Example
|
||||
|
||||
```
|
||||
# HELP windows_performancecounter_memory_cache_faults_sec
|
||||
# TYPE windows_performancecounter_memory_cache_faults_sec counter
|
||||
windows_performancecounter_memory_cache_faults_sec 7.028097e+06
|
||||
# HELP windows_performancecounter_processor_information_processor_time
|
||||
# TYPE windows_performancecounter_processor_information_processor_time counter
|
||||
windows_performancecounter_processor_information_processor_time{core="0,0",state="active"} 8.3809375e+10
|
||||
windows_performancecounter_processor_information_processor_time{core="0,0",state="idle"} 8380.9375
|
||||
windows_performancecounter_processor_information_processor_time{core="0,1",state="active"} 8.2868125e+10
|
||||
windows_performancecounter_processor_information_processor_time{core="0,1",state="idle"} 8286.8125
|
||||
windows_performancecounter_processor_information_processor_time{core="0,10",state="active"} 9.720046875e+10
|
||||
windows_performancecounter_processor_information_processor_time{core="0,10",state="idle"} 9720.046875
|
||||
windows_performancecounter_processor_information_processor_time{core="0,11",state="active"} 9.994921875e+10
|
||||
windows_performancecounter_processor_information_processor_time{core="0,11",state="idle"} 9994.921875
|
||||
windows_performancecounter_processor_information_processor_time{core="0,12",state="active"} 1.014403125e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,12",state="idle"} 10144.03125
|
||||
windows_performancecounter_processor_information_processor_time{core="0,13",state="active"} 1.0155453125e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,13",state="idle"} 10155.453125
|
||||
windows_performancecounter_processor_information_processor_time{core="0,14",state="active"} 1.01290625e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,14",state="idle"} 10129.0625
|
||||
windows_performancecounter_processor_information_processor_time{core="0,15",state="active"} 1.0134890625e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,15",state="idle"} 10134.890625
|
||||
windows_performancecounter_processor_information_processor_time{core="0,16",state="active"} 1.01405625e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,16",state="idle"} 10140.5625
|
||||
windows_performancecounter_processor_information_processor_time{core="0,17",state="active"} 1.0153421875e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,17",state="idle"} 10153.421875
|
||||
windows_performancecounter_processor_information_processor_time{core="0,18",state="active"} 1.0086390625e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,18",state="idle"} 10086.390625
|
||||
windows_performancecounter_processor_information_processor_time{core="0,19",state="active"} 1.0123453125e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,19",state="idle"} 10123.453125
|
||||
windows_performancecounter_processor_information_processor_time{core="0,2",state="active"} 8.3548125e+10
|
||||
windows_performancecounter_processor_information_processor_time{core="0,2",state="idle"} 8354.8125
|
||||
windows_performancecounter_processor_information_processor_time{core="0,20",state="active"} 1.011703125e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,20",state="idle"} 10117.03125
|
||||
windows_performancecounter_processor_information_processor_time{core="0,21",state="active"} 1.0140984375e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,21",state="idle"} 10140.984375
|
||||
windows_performancecounter_processor_information_processor_time{core="0,22",state="active"} 1.014615625e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,22",state="idle"} 10146.15625
|
||||
windows_performancecounter_processor_information_processor_time{core="0,23",state="active"} 1.0145125e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,23",state="idle"} 10145.125
|
||||
windows_performancecounter_processor_information_processor_time{core="0,3",state="active"} 8.488953125e+10
|
||||
windows_performancecounter_processor_information_processor_time{core="0,3",state="idle"} 8488.953125
|
||||
windows_performancecounter_processor_information_processor_time{core="0,4",state="active"} 9.338234375e+10
|
||||
windows_performancecounter_processor_information_processor_time{core="0,4",state="idle"} 9338.234375
|
||||
windows_performancecounter_processor_information_processor_time{core="0,5",state="active"} 9.776453125e+10
|
||||
windows_performancecounter_processor_information_processor_time{core="0,5",state="idle"} 9776.453125
|
||||
windows_performancecounter_processor_information_processor_time{core="0,6",state="active"} 9.736265625e+10
|
||||
windows_performancecounter_processor_information_processor_time{core="0,6",state="idle"} 9736.265625
|
||||
windows_performancecounter_processor_information_processor_time{core="0,7",state="active"} 9.959375e+10
|
||||
windows_performancecounter_processor_information_processor_time{core="0,7",state="idle"} 9959.375
|
||||
windows_performancecounter_processor_information_processor_time{core="0,8",state="active"} 9.939421875e+10
|
||||
windows_performancecounter_processor_information_processor_time{core="0,8",state="idle"} 9939.421875
|
||||
windows_performancecounter_processor_information_processor_time{core="0,9",state="active"} 1.0059484375e+11
|
||||
windows_performancecounter_processor_information_processor_time{core="0,9",state="idle"} 10059.484375
|
||||
# HELP windows_performancecounter_memory_cache_faults_total
|
||||
# TYPE windows_performancecounter_memory_cache_faults_total counter
|
||||
windows_performancecounter_memory_cache_faults_total 7.028097e+06
|
||||
# HELP windows_performancecounter_processor_information_processor_time_total
|
||||
# TYPE windows_performancecounter_processor_information_processor_time_total counter
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,0",state="active"} 8.3809375e+10
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,0",state="idle"} 8380.9375
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,1",state="active"} 8.2868125e+10
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,1",state="idle"} 8286.8125
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,10",state="active"} 9.720046875e+10
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,10",state="idle"} 9720.046875
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,11",state="active"} 9.994921875e+10
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,11",state="idle"} 9994.921875
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,12",state="active"} 1.014403125e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,12",state="idle"} 10144.03125
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,13",state="active"} 1.0155453125e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,13",state="idle"} 10155.453125
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,14",state="active"} 1.01290625e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,14",state="idle"} 10129.0625
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,15",state="active"} 1.0134890625e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,15",state="idle"} 10134.890625
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,16",state="active"} 1.01405625e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,16",state="idle"} 10140.5625
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,17",state="active"} 1.0153421875e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,17",state="idle"} 10153.421875
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,18",state="active"} 1.0086390625e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,18",state="idle"} 10086.390625
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,19",state="active"} 1.0123453125e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,19",state="idle"} 10123.453125
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,2",state="active"} 8.3548125e+10
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,2",state="idle"} 8354.8125
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,20",state="active"} 1.011703125e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,20",state="idle"} 10117.03125
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,21",state="active"} 1.0140984375e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,21",state="idle"} 10140.984375
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,22",state="active"} 1.014615625e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,22",state="idle"} 10146.15625
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,23",state="active"} 1.0145125e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,23",state="idle"} 10145.125
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,3",state="active"} 8.488953125e+10
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,3",state="idle"} 8488.953125
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,4",state="active"} 9.338234375e+10
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,4",state="idle"} 9338.234375
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,5",state="active"} 9.776453125e+10
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,5",state="idle"} 9776.453125
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,6",state="active"} 9.736265625e+10
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,6",state="idle"} 9736.265625
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,7",state="active"} 9.959375e+10
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,7",state="idle"} 9959.375
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,8",state="active"} 9.939421875e+10
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,8",state="idle"} 9939.421875
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,9",state="active"} 1.0059484375e+11
|
||||
windows_performancecounter_processor_information_processor_time_total{core="0,9",state="idle"} 10059.484375
|
||||
```
|
||||
> [!NOTE]
|
||||
> If you are using a configuration file, the value must be keep as string.
|
||||
|
||||
Reference in New Issue
Block a user