Skip to content

Commit

Permalink
infrastructure: cluster1: kube-prometheus-stack: Collect tp-link.
Browse files Browse the repository at this point in the history
  • Loading branch information
wigust committed Jan 28, 2024
1 parent 2b048f9 commit 82e6796
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 0 additions & 1 deletion dotfiles/guixsd/guixsd.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,6 @@ location / {
(@ (deprecated) openssh)))
(host "192.168.0.1")
(known-hosts '("192.168.0.1 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgwCtcjXU3PrcxuwxQh3zM5gOvA3QonoXTcdBiIQ9YZJ9mJpK/4ASWNnozR8Z1RLR1Z+3fomfdAk0aVmHdly0GxTyuSa69kiaQlQrfbI9hheAylTBk23OMv0hmf5sRkk/I0yNOSkr8o7fi8bvlOETaJ164lZvQ5+4S0UNSADJ2MOQ6B3B"))
(listen-address "127.0.0.1:9101")
(environment-variables
(list
(string-append
Expand Down
15 changes: 15 additions & 0 deletions infrastructure/cluster1/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ prometheus:
requests:
cpu: 1
memory: 256Mi
additionalScrapeConfigs:
- static_configs:
- targets:
- 192.168.0.1
scrape_interval: 10s
job_name: tp-link
relabel_configs:
- source_labels:
- __address__
target_label: __param_target
- source_labels:
- __param_target
target_label: instance
- replacement: 192.168.0.145:9101
target_label: __address__
ingress:
enabled: true
ingressClassName: nginx
Expand Down

0 comments on commit 82e6796

Please sign in to comment.