From 556fb08fec3766f34b63ad18edfa62af50e91b16 Mon Sep 17 00:00:00 2001 From: Ehi Enabulele Date: Thu, 1 Jun 2023 17:33:19 +0000 Subject: [PATCH 1/5] added systemd collector config Signed-off-by: Ehi Enabulele --- pipeline/inputs/node-exporter-metrics.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pipeline/inputs/node-exporter-metrics.md b/pipeline/inputs/node-exporter-metrics.md index a25d36824..276c5177c 100644 --- a/pipeline/inputs/node-exporter-metrics.md +++ b/pipeline/inputs/node-exporter-metrics.md @@ -37,6 +37,11 @@ This plugin is currently only supported on Linux based operating systems\ | filesystem.ignore\_mount\_point\_regex | Specify the regex for the mount points to prevent collection of/ignore. | `^/(dev|proc|run/credentials/.+|sys|var/lib/docker/.+|var/lib/containers/storage/.+)($|/)` | | filesystem.ignore\_filesystem\_type\_regex | Specify the regex for the filesystem types to prevent collection of/ignore. | `^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$` | | diskstats.ignore\_device\_regex | Specify the regex for the diskstats to prevent collection of/ignore. | `^(ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\\d+n\\d+p)\\d+$` | +| systemd_service_restart_metrics | Determines if the collector will include service restart metrics | false | +| systemd_unit_start_time_metrics | Determines if the collector will include unit start time metrics | false | +| systemd_include_service_task_metrics | Determines if the collector will include service task metrics | false | +| systemd_include_pattern | regex to determine which units are included in the metrics produced by the systemd collector | it's not applied unless explicitly set | +| systemd_exclude_pattern | regex you'd set to determine which units are excluded in the metrics produced by the systemd collector | `.+\\.(automount|device|mount|scope|slice)"` | **Note:** The plugin top-level `scrape_interval` setting is the global default with any custom settings for individual `scrape_intervals` then overriding just that specific metric scraping interval. @@ -46,6 +51,7 @@ The overridden intervals only change the collection interval, not the interval f For example, if the global interval is set to 5s and an override interval of 60s is used then the published metrics will be reported every 5s but for the specific collector they will stay the same for 60s until it is collected again. This feature aims to help with down-sampling when collecting metrics. + ## Collectors available The following table describes the available collectors as part of this plugin. All of them are enabled by default and respects the original metrics name, descriptions, and types from Prometheus Exporter, so you can use your current dashboards without any compatibility problem. @@ -65,6 +71,7 @@ The following table describes the available collectors as part of this plugin. A | time | Exposes the current system time. | Linux | v1.8 | | uname | Exposes system information as provided by the uname system call. | Linux | v1.8 | | vmstat | Exposes statistics from `/proc/vmstat`. | Linux | v1.8.2 | +| systemd collector | Exposes statistics fr systemd. | Linux | v1.8.2 | ## Getting Started From e1903f70c688873f35ba5e73f3c9b9deb77ef794 Mon Sep 17 00:00:00 2001 From: Ehi Enabs Date: Fri, 7 Jul 2023 04:44:35 +0100 Subject: [PATCH 2/5] Update pipeline/inputs/node-exporter-metrics.md Co-authored-by: Pat Signed-off-by: Ehi Enabs --- pipeline/inputs/node-exporter-metrics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/inputs/node-exporter-metrics.md b/pipeline/inputs/node-exporter-metrics.md index 276c5177c..5e62b8571 100644 --- a/pipeline/inputs/node-exporter-metrics.md +++ b/pipeline/inputs/node-exporter-metrics.md @@ -40,7 +40,7 @@ This plugin is currently only supported on Linux based operating systems\ | systemd_service_restart_metrics | Determines if the collector will include service restart metrics | false | | systemd_unit_start_time_metrics | Determines if the collector will include unit start time metrics | false | | systemd_include_service_task_metrics | Determines if the collector will include service task metrics | false | -| systemd_include_pattern | regex to determine which units are included in the metrics produced by the systemd collector | it's not applied unless explicitly set | +| systemd_include_pattern | regex to determine which units are included in the metrics produced by the systemd collector | It is not applied unless explicitly set | | systemd_exclude_pattern | regex you'd set to determine which units are excluded in the metrics produced by the systemd collector | `.+\\.(automount|device|mount|scope|slice)"` | From 8527d3f780b00b6a4e3bc35a73abebaed552fa1c Mon Sep 17 00:00:00 2001 From: Ehi Enabs Date: Fri, 7 Jul 2023 04:45:02 +0100 Subject: [PATCH 3/5] Update pipeline/inputs/node-exporter-metrics.md Co-authored-by: Pat Signed-off-by: Ehi Enabs --- pipeline/inputs/node-exporter-metrics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/inputs/node-exporter-metrics.md b/pipeline/inputs/node-exporter-metrics.md index 5e62b8571..d4a12369e 100644 --- a/pipeline/inputs/node-exporter-metrics.md +++ b/pipeline/inputs/node-exporter-metrics.md @@ -41,7 +41,7 @@ This plugin is currently only supported on Linux based operating systems\ | systemd_unit_start_time_metrics | Determines if the collector will include unit start time metrics | false | | systemd_include_service_task_metrics | Determines if the collector will include service task metrics | false | | systemd_include_pattern | regex to determine which units are included in the metrics produced by the systemd collector | It is not applied unless explicitly set | -| systemd_exclude_pattern | regex you'd set to determine which units are excluded in the metrics produced by the systemd collector | `.+\\.(automount|device|mount|scope|slice)"` | +| systemd_exclude_pattern | regex to determine which units are excluded in the metrics produced by the systemd collector | `.+\\.(automount|device|mount|scope|slice)"` | **Note:** The plugin top-level `scrape_interval` setting is the global default with any custom settings for individual `scrape_intervals` then overriding just that specific metric scraping interval. From 4962db4fdc360cb1418fca49ef17bc4ec8a6984e Mon Sep 17 00:00:00 2001 From: Ehi Enabulele Date: Fri, 7 Jul 2023 04:04:22 +0000 Subject: [PATCH 4/5] edited systemd version Signed-off-by: Ehi Enabulele --- pipeline/inputs/node-exporter-metrics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/inputs/node-exporter-metrics.md b/pipeline/inputs/node-exporter-metrics.md index d4a12369e..72a6058bb 100644 --- a/pipeline/inputs/node-exporter-metrics.md +++ b/pipeline/inputs/node-exporter-metrics.md @@ -71,7 +71,7 @@ The following table describes the available collectors as part of this plugin. A | time | Exposes the current system time. | Linux | v1.8 | | uname | Exposes system information as provided by the uname system call. | Linux | v1.8 | | vmstat | Exposes statistics from `/proc/vmstat`. | Linux | v1.8.2 | -| systemd collector | Exposes statistics fr systemd. | Linux | v1.8.2 | +| systemd collector | Exposes statistics fr systemd. | Linux | v2.1.3 | ## Getting Started From fc3c72906253114e3004f9e7ac0e34d7d32e0a81 Mon Sep 17 00:00:00 2001 From: Pat Date: Fri, 7 Jul 2023 10:45:10 +0100 Subject: [PATCH 5/5] Update pipeline/inputs/node-exporter-metrics.md Signed-off-by: Pat --- pipeline/inputs/node-exporter-metrics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/inputs/node-exporter-metrics.md b/pipeline/inputs/node-exporter-metrics.md index 72a6058bb..173836ec6 100644 --- a/pipeline/inputs/node-exporter-metrics.md +++ b/pipeline/inputs/node-exporter-metrics.md @@ -71,7 +71,7 @@ The following table describes the available collectors as part of this plugin. A | time | Exposes the current system time. | Linux | v1.8 | | uname | Exposes system information as provided by the uname system call. | Linux | v1.8 | | vmstat | Exposes statistics from `/proc/vmstat`. | Linux | v1.8.2 | -| systemd collector | Exposes statistics fr systemd. | Linux | v2.1.3 | +| systemd collector | Exposes statistics from systemd. | Linux | v2.1.3 | ## Getting Started