From c768aa4353030f4814b35a4616c72327db15ccc7 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Mon, 29 Jan 2024 01:39:40 +0300 Subject: [PATCH] infrastructure: cluster1: kube-prometheus-stack: Collect networking. --- .../kube-prometheus-stack/values.yaml | 56 ++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/infrastructure/cluster1/kube-prometheus-stack/values.yaml b/infrastructure/cluster1/kube-prometheus-stack/values.yaml index b55a07c3b..7f1840d8c 100644 --- a/infrastructure/cluster1/kube-prometheus-stack/values.yaml +++ b/infrastructure/cluster1/kube-prometheus-stack/values.yaml @@ -98,7 +98,61 @@ prometheus: - replacement: 192.168.0.145:9115 target_label: __address__ job_name: icmp - ingress: + - static_configs: + - targets: + - smtp.wugi.info:25 + scrape_interval: 30s + metrics_path: /probe + params: + module: + - smtp_starttls + relabel_configs: + - source_labels: + - __address__ + target_label: __param_target + - source_labels: + - __param_target + target_label: instance + - replacement: 192.168.0.145:9115 + target_label: __address__ + job_name: smtps + - static_configs: + - targets: + - imap.wugi.info:143 + scrape_interval: 30s + metrics_path: /probe + params: + module: + - imap_starttls + relabel_configs: + - source_labels: + - __address__ + target_label: __param_target + - source_labels: + - __param_target + target_label: instance + - replacement: 192.168.0.145:9115 + target_label: __address__ + job_name: imaps + - static_configs: + - targets: + - 8.8.8.8 + scrape_interval: 10m + metrics_path: /probe + params: + module: + - dns_udp_mjru_wugi_info + relabel_configs: + - source_labels: + - __address__ + target_label: __param_target + - source_labels: + - __param_target + target_label: instance + - replacement: 192.168.0.145:9115 + target_label: __address__ + job_name: dns + ingress: enabled: true ingressClassName: nginx annotations: