diff --git a/infrastructure/cluster1/kube-prometheus-stack/values.yaml b/infrastructure/cluster1/kube-prometheus-stack/values.yaml index 7f1840d8c..e28fb451b 100644 --- a/infrastructure/cluster1/kube-prometheus-stack/values.yaml +++ b/infrastructure/cluster1/kube-prometheus-stack/values.yaml @@ -152,6 +152,28 @@ prometheus: - replacement: 192.168.0.145:9115 target_label: __address__ job_name: dns + - static_configs: + - targets: + - vm1.wugi.info:22 + labels: + module: default + relabel_configs: + - target_label: __param_target + source_labels: + - __address__ + - target_label: instance + source_labels: + - __param_target + - target_label: __address__ + replacement: 192.168.0.145:9312 + - target_label: __param_module + source_labels: + - module + metrics_path: /ssh + metric_relabel_configs: + - regex: ^(module)$ + action: labeldrop + job_name: ssh ingress: enabled: true ingressClassName: nginx