You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
-[#2302](https://github.com/openshift/cluster-monitoring-operator/issues/2302) Enable feature `extra-scrape-metrics` in Prometheus user-workload
6
6
-[#2319](https://github.com/openshift/cluster-monitoring-operator/pull/2319) Allow read-only access to the Alertmanager API (use `monitoring-alertmanager-view`).
7
7
-[#2078](https://github.com/openshift/cluster-monitoring-operator/pull/2078) Support exporting VPA metrics from KSM.
8
+
-[#2339](https://github.com/openshift/cluster-monitoring-operator/pull/2339) Add support to sysctl node-exporter collector
@@ -250,6 +251,7 @@ The `NodeExporterCollectorConfig` resource defines settings for individual colle
250
251
| mountstats |[NodeExporterCollectorMountStatsConfig](#nodeexportercollectormountstatsconfig)| Defines the configuration of the `mountstats` collector, which collects statistics about NFS volume I/O activities. Disabled by default. |
251
252
| ksmd |[NodeExporterCollectorKSMDConfig](#nodeexportercollectorksmdconfig)| Defines the configuration of the `ksmd` collector, which collects statistics from the kernel same-page merger daemon. Disabled by default. |
252
253
| processes |[NodeExporterCollectorProcessesConfig](#nodeexportercollectorprocessesconfig)| Defines the configuration of the `processes` collector, which collects statistics from processes and threads running in the system. Disabled by default. |
254
+
| sysctl |[NodeExporterCollectorSysctlConfig](#nodeexportercollectorsysctlconfig)| Defines the configuration of the `sysctl` collector, which collects sysctl metrics. Disabled by default. |
253
255
| systemd |[NodeExporterCollectorSystemdConfig](#nodeexportercollectorsystemdconfig)| Defines the configuration of the `systemd` collector, which collects statistics on the systemd daemon and its managed services. Disabled by default. |
254
256
255
257
[Back to TOC](#table-of-contents)
@@ -345,6 +347,23 @@ The `NodeExporterCollectorProcessesConfig` resource works as an on/off switch fo
345
347
346
348
[Back to TOC](#table-of-contents)
347
349
350
+
## NodeExporterCollectorSysctlConfig
351
+
352
+
#### Description
353
+
354
+
The `NodeExporterCollectorSysctlConfig` resource works as an on/off switch for the `sysctl` collector of the `node-exporter` agent. Caution! Exposing metrics like kernel.random.uuid can disrupt Prometheus, as it generates new data series with every scrape. Use this option judiciously! By default, the `sysctl` collector is disabled.
| enabled | bool | A Boolean flag that enables or disables the `sysctl` collector. |
362
+
| includeSysctlMetrics |[]string | A list of numeric sysctl values. Note that a sysctl can contain multiple values, for example: `net.ipv4.tcp_rmem = 4096\t131072\t6291456`. Using `includeSysctlMetrics: ['net.ipv4.tcp_rmem']` the collector will expose: `node_sysctl_net_ipv4_tcp_rmem{index=\"0\"} 4096`, `node_sysctl_net_ipv4_tcp_rmem{index=\"1\"} 131072`, `node_sysctl_net_ipv4_tcp_rmem{index=\"2\"} 6291456`. If the indexes have defined meaning like in this case, the values can be mapped to multiple metrics: `includeSysctlMetrics: ['net.ipv4.tcp_rmem:min,default,max']`. The collector will expose these metrics as such: `node_sysctl_net_ipv4_tcp_rmem_min 4096`, `node_sysctl_net_ipv4_tcp_rmem_default 131072`, `node_sysctl_net_ipv4_tcp_rmem_max 6291456`. |
363
+
| includeInfoSysctlMetrics |[]string | A list of string sysctl values. For example: `includeSysctlMetrics: ['kernel.core_pattern', 'kernel.seccomp.actions_avail = kill_process kill_thread']`. The collector will expose these metrics as such: `node_sysctl_info{name=\"kernel.core_pattern\", value=\"core\"} 1`, `node_sysctl_info{name=\"kernel.seccomp.actions_avail\", index=\"0\", value=\"kill_process\"} 1`, `node_sysctl_info{name=\"kernel.seccomp.actions_avail\", index=\"1\", value=\"kill_thread\"} 1`, ... |
|processes|link:nodeexportercollectorprocessesconfig.adoc[NodeExporterCollectorProcessesConfig]|Defines the configuration of the `processes` collector, which collects statistics from processes and threads running in the system. Disabled by default.
36
36
37
+
|sysctl|link:nodeexportercollectorsysctlconfig.adoc[NodeExporterCollectorSysctlConfig]|Defines the configuration of the `sysctl` collector, which collects sysctl metrics. Disabled by default.
38
+
37
39
|systemd|link:nodeexportercollectorsystemdconfig.adoc[NodeExporterCollectorSystemdConfig]|Defines the configuration of the `systemd` collector, which collects statistics on the systemd daemon and its managed services. Disabled by default.
// DO NOT EDIT THE CONTENT IN THIS FILE. It is automatically generated from the
2
+
// source code for the Cluster Monitoring Operator. Any changes made to this
3
+
// file will be overwritten when the content is re-generated. If you wish to
4
+
// make edits, read the docgen utility instructions in the source code for the
5
+
// CMO.
6
+
:_content-type: ASSEMBLY
7
+
8
+
== NodeExporterCollectorSysctlConfig
9
+
10
+
=== Description
11
+
12
+
The `NodeExporterCollectorSysctlConfig` resource works as an on/off switch for the `sysctl` collector of the `node-exporter` agent. Caution! Exposing metrics like kernel.random.uuid can disrupt Prometheus, as it generates new data series with every scrape. Use this option judiciously! By default, the `sysctl` collector is disabled.
|enabled|bool|A Boolean flag that enables or disables the `sysctl` collector.
22
+
23
+
|includeSysctlMetrics|[]string|A list of numeric sysctl values. Note that a sysctl can contain multiple values, for example: `net.ipv4.tcp_rmem = 4096\t131072\t6291456`. Using `includeSysctlMetrics: ['net.ipv4.tcp_rmem']` the collector will expose: `node_sysctl_net_ipv4_tcp_rmem{index=\"0\"} 4096`, `node_sysctl_net_ipv4_tcp_rmem{index=\"1\"} 131072`, `node_sysctl_net_ipv4_tcp_rmem{index=\"2\"} 6291456`. If the indexes have defined meaning like in this case, the values can be mapped to multiple metrics: `includeSysctlMetrics: ['net.ipv4.tcp_rmem:min,default,max']`. The collector will expose these metrics as such: `node_sysctl_net_ipv4_tcp_rmem_min 4096`, `node_sysctl_net_ipv4_tcp_rmem_default 131072`, `node_sysctl_net_ipv4_tcp_rmem_max 6291456`.
24
+
25
+
|includeInfoSysctlMetrics|[]string|A list of string sysctl values. For example: `includeSysctlMetrics: ['kernel.core_pattern', 'kernel.seccomp.actions_avail = kill_process kill_thread']`. The collector will expose these metrics as such: `node_sysctl_info{name=\"kernel.core_pattern\", value=\"core\"} 1`, `node_sysctl_info{name=\"kernel.seccomp.actions_avail\", index=\"0\", value=\"kill_process\"} 1`, `node_sysctl_info{name=\"kernel.seccomp.actions_avail\", index=\"1\", value=\"kill_thread\"} 1`, ...
@@ -376,6 +379,38 @@ type NodeExporterCollectorTcpStatConfig struct {
376
379
Enabledbool`json:"enabled,omitempty"`
377
380
}
378
381
382
+
// The `NodeExporterCollectorSysctlConfig` resource works as an on/off switch for
383
+
// the `sysctl` collector of the `node-exporter` agent.
384
+
// Caution! Exposing metrics like kernel.random.uuid can disrupt Prometheus, as it generates new data series with every scrape. Use this option judiciously!
385
+
// By default, the `sysctl` collector is disabled.
386
+
typeNodeExporterCollectorSysctlConfigstruct {
387
+
// A Boolean flag that enables or disables the `sysctl` collector.
388
+
Enabledbool`json:"enabled,omitempty"`
389
+
// A list of numeric sysctl values.
390
+
// Note that a sysctl can contain multiple values, for example:
391
+
// `net.ipv4.tcp_rmem = 4096 131072 6291456`.
392
+
// Using `includeSysctlMetrics: ['net.ipv4.tcp_rmem']` the collector will expose:
0 commit comments