From a74113d95f33d4ba1be08d622e5e8b28ed4a29ac Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 3 Oct 2023 10:26:02 -0500 Subject: [PATCH] metricspi: Scrape Zincati metrics from CoreOS hosts Zincati is the automatic update manager on Fedora CoreOS. It exposes Prometheus metrics for host/update statistics, which are useful to track the progress of automatic updates and identify update issues. Zinciti actually exposes its metrics via a Unix socket on the filesystem. Another process, [local_exporter], is required to expose the metrics from this socket via HTTP so Prometheus can scrape them. [local_exporter]: https://github.com/lucab/local_exporter --- group_vars/metricspi/scrape.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/group_vars/metricspi/scrape.yml b/group_vars/metricspi/scrape.yml index 33f8c97..f5c0e3c 100644 --- a/group_vars/metricspi/scrape.yml +++ b/group_vars/metricspi/scrape.yml @@ -234,3 +234,17 @@ vmagent_scrape_configs: static_configs: - targets: - kubernetes.pyrocufflink.blue:6443 + +- job_name: zincati + scrape_interval: 1m + metrics_path: /bridge?selector=zincati + static_configs: + - targets: + - k8s-aarch64-n0.pyrocufflink.blue + - nvr1.pyrocufflink.blue + relabel_configs: + - source_labels: [__address__] + target_label: instance + - source_labels: [__address__] + target_label: __address__ + replacement: '$1:9598'