From 365336995b4cf80ef8dcdcfa42e84dbe5816ae14 Mon Sep 17 00:00:00 2001 From: egmc Date: Fri, 12 Jan 2024 18:13:53 +0900 Subject: [PATCH] Add descriptions about systemd-resolved option. Signed-off-by: egmc --- README.md | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 923ffee..8e498be 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ Name | Description | --systemd.collector.enable-restart-count | Enables service restart count metrics. This feature only works with systemd 235 and above. --systemd.collector.enable-file-descriptor-size | Enables file descriptor size metrics. Systemd Exporter needs access to /proc/X/fd files. --systemd.collector.enable-ip-accounting | Enables service ip accounting metrics. This feature only works with systemd 235 and above. +--systemd.collector.enable-resolved | Enable systemd-resolved metrics. Of note, there is no customized support for `.snapshot` (removed in systemd v228), `.busname` (only present on systems using kdbus), `generated` (created via generators), `transient` (created during systemd-run) have no special support. @@ -83,23 +84,32 @@ PromQL grouping queries (e.g. `count(systemd_unit_state) by (type)`) Note that a number of unit types are filtered by default -| Metric name | Metric type | Status | Cardinality | -| ----------------------------------------- | ----------- | -------- | ------------------------------------------------------------------ | -| systemd_exporter_build_info | Gauge | UNSTABLE | 1 per systemd-exporter | -| systemd_unit_info | Gauge | UNSTABLE | 1 per service + 1 per mount | -| systemd_unit_state | Gauge | UNSTABLE | 5 per unit {state="activating/active/deactivating/failed/inactive} | -| systemd_unit_tasks_current | Gauge | UNSTABLE | 1 per service | -| systemd_unit_tasks_max | Gauge | UNSTABLE | 1 per service | -| systemd_unit_start_time_seconds | Gauge | UNSTABLE | 1 per service | -| systemd_service_restart_total | Gauge | UNSTABLE | 1 per service | -| systemd_service_ip_ingress_bytes | Counter | UNSTABLE | 1 per service | -| systemd_service_ip_egress_bytes | Counter | UNSTABLE | 1 per service | -| systemd_service_ip_ingress_packets_total | Counter | UNSTABLE | 1 per service | -| systemd_service_ip_egress_packets_total | Counter | UNSTABLE | 1 per service | -| systemd_socket_accepted_connections_total | Counter | UNSTABLE | 1 per socket | -| systemd_socket_current_connections | Gauge | UNSTABLE | 1 per socket | -| systemd_socket_refused_connections_total | Gauge | UNSTABLE | 1 per socket | -| systemd_timer_last_trigger_seconds | Gauge | UNSTABLE | 1 per timer | +| Metric name | Metric type | Status | Cardinality | +| ------------------------------------------ | ----------- | -------- | ------------------------------------------------------------------ | +| systemd_exporter_build_info | Gauge | UNSTABLE | 1 per systemd-exporter | +| systemd_unit_info | Gauge | UNSTABLE | 1 per service + 1 per mount | +| systemd_unit_state | Gauge | UNSTABLE | 5 per unit {state="activating/active/deactivating/failed/inactive} | +| systemd_unit_tasks_current | Gauge | UNSTABLE | 1 per service | +| systemd_unit_tasks_max | Gauge | UNSTABLE | 1 per service | +| systemd_unit_start_time_seconds | Gauge | UNSTABLE | 1 per service | +| systemd_service_restart_total | Gauge | UNSTABLE | 1 per service | +| systemd_service_ip_ingress_bytes | Counter | UNSTABLE | 1 per service | +| systemd_service_ip_egress_bytes | Counter | UNSTABLE | 1 per service | +| systemd_service_ip_ingress_packets_total | Counter | UNSTABLE | 1 per service | +| systemd_service_ip_egress_packets_total | Counter | UNSTABLE | 1 per service | +| systemd_socket_accepted_connections_total | Counter | UNSTABLE | 1 per socket | +| systemd_socket_current_connections | Gauge | UNSTABLE | 1 per socket | +| systemd_socket_refused_connections_total | Gauge | UNSTABLE | 1 per socket | +| systemd_timer_last_trigger_seconds | Gauge | UNSTABLE | 1 per timer | +| systemd_resolved_cache_hits_total | Counter | UNSTABLE | 1 per systemd-exporter | +| systemd_resolved_cache_misses_total | Counter | UNSTABLE | 1 per systemd-exporter | +| systemd_resolved_current_cache_size | Gauge | UNSTABLE | 1 per systemd-exporter | +| systemd_resolved_current_transactions | Gauge | UNSTABLE | 1 per systemd-exporter | +| systemd_resolved_transactions_total | Counter | UNSTABLE | 1 per systemd-exporter | +| systemd_resolved_dnssec_bogus_total | Counter | UNSTABLE | 1 per systemd-exporter | +| systemd_resolved_dnssec_indeterminate_total| Counter | UNSTABLE | 1 per systemd-exporter | +| systemd_resolved_dnssec_insecure_total | Counter | UNSTABLE | 1 per systemd-exporter | +| systemd_resolved_dnssec_secure_total | Counter | UNSTABLE | 1 per systemd-exporter | ## Configuration