Skip to content

Commit

Permalink
infrastructure: cluster1: kube-prometheus-stack: Collect ssh.
Browse files Browse the repository at this point in the history
  • Loading branch information
wigust committed Jan 28, 2024
1 parent c768aa4 commit 9b449a2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions infrastructure/cluster1/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b449a2

Please sign in to comment.