Skip to content

Commit 0e8e934

Browse files
authored
Merge pull request #10 from stackhpc/feature/handle_bad_bmc_output
Granular control for metric collection
2 parents 6141afa + 2763612 commit 0e8e934

File tree

4 files changed

+291
-212
lines changed

4 files changed

+291
-212
lines changed

README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ groups:
1616
group1:
1717
username: group1_user
1818
password: group1_pass
19+
flakey:
20+
username: "Administrator"
21+
password: "Password"
22+
disabled_metrics:
23+
- "ethernet_interfaces"
1924
```
2025
Note that the ```default``` entry is useful as it avoids an error
2126
condition that is discussed in [this issue][2].
@@ -74,7 +79,6 @@ curl '127.0.0.1:9123/redfish?target=10.10.12.23&collectlogs=true'
7479

7580
The `collectlogs` query parameter can be included in Prometheus config.
7681

77-
7882
### Log collection count
7983

8084
To restrict the number of logs collected for all log services:
@@ -114,6 +118,34 @@ hosts:
114118
Sel: -1
115119
```
116120

121+
## Disabling collection of specific groups of metrics
122+
123+
Sometimes it isn't possible to gather all metrics from a BMC because
124+
it doesn't conform to the Redfish standard due to a bug. Or perhaps
125+
you don't need all the metrics. In either case, basic support exists
126+
for skipping specific metric groups at the `default`, `group` or
127+
`host` level:
128+
129+
```yaml
130+
hosts:
131+
10.36.48.24:
132+
username: admin
133+
password: pass
134+
disabled_metrics:
135+
- "ethernet_interfaces"
136+
default:
137+
username: admin
138+
password: pass
139+
disabled_metrics:
140+
- "memory"
141+
- "processor"
142+
- "storage"
143+
- "pcie_devices"
144+
- "network_interfaces"
145+
- "ethernet_interfaces"
146+
- "simple_storage"
147+
- "pcie_functions"
148+
```
117149

118150
## Building
119151

0 commit comments

Comments
 (0)