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
@@ -249,6 +250,7 @@ The `NodeExporterCollectorConfig` resource defines settings for individual colle
249
250
| mountstats |[NodeExporterCollectorMountStatsConfig](#nodeexportercollectormountstatsconfig)| Defines the configuration of the `mountstats` collector, which collects statistics about NFS volume I/O activities. Disabled by default. |
250
251
| ksmd |[NodeExporterCollectorKSMDConfig](#nodeexportercollectorksmdconfig)| Defines the configuration of the `ksmd` collector, which collects statistics from the kernel same-page merger daemon. Disabled by default. |
251
252
| processes |[NodeExporterCollectorProcessesConfig](#nodeexportercollectorprocessesconfig)| Defines the configuration of the `processes` collector, which collects statistics from processes and threads running in the system. Disabled by default. |
253
+
| sysctl |[NodeExporterCollectorSysctlConfig](#nodeexportercollectorsysctlconfig)| Defines the configuration of the `sysctl` collector, which collects sysctl metrics. Disabled by default. |
252
254
| systemd |[NodeExporterCollectorSystemdConfig](#nodeexportercollectorsystemdconfig)| Defines the configuration of the `systemd` collector, which collects statistics on the systemd daemon and its managed services. Disabled by default. |
253
255
254
256
[Back to TOC](#table-of-contents)
@@ -344,6 +346,23 @@ The `NodeExporterCollectorProcessesConfig` resource works as an on/off switch fo
344
346
345
347
[Back to TOC](#table-of-contents)
346
348
349
+
## NodeExporterCollectorSysctlConfig
350
+
351
+
#### Description
352
+
353
+
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. |
361
+
| 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`. |
362
+
| 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`, ...
@@ -397,6 +400,38 @@ type NodeExporterCollectorTcpStatConfig struct {
397
400
Enabledbool`json:"enabled,omitempty"`
398
401
}
399
402
403
+
// The `NodeExporterCollectorSysctlConfig` resource works as an on/off switch for
404
+
// the `sysctl` collector of the `node-exporter` agent.
405
+
// Caution! Exposing metrics like kernel.random.uuid can disrupt Prometheus, as it generates new data series with every scrape. Use this option judiciously!
406
+
// By default, the `sysctl` collector is disabled.
407
+
typeNodeExporterCollectorSysctlConfigstruct {
408
+
// A Boolean flag that enables or disables the `sysctl` collector.
409
+
Enabledbool`json:"enabled,omitempty"`
410
+
// A list of numeric sysctl values.
411
+
// Note that a sysctl can contain multiple values, for example:
412
+
// `net.ipv4.tcp_rmem = 4096 131072 6291456`.
413
+
// Using `includeSysctlMetrics: ['net.ipv4.tcp_rmem']` the collector will expose:
0 commit comments