1
0
mirror of https://github.com/ribbybibby/ssl_exporter.git synced 2025-07-15 23:54:18 +02:00

Update README.md (#90)

* Update README.md

Added the Example for type - kubernetes

* Update README.md

Co-authored-by: Rob Best <robertbest89@gmail.com>
This commit is contained in:
manishpanjwani21
2022-05-10 02:56:42 +10:00
committed by GitHub
parent 52fb44781c
commit 67a8b2d393

View File

@ -209,6 +209,23 @@ sources in the following order:
- The default configuration file (`$HOME/.kube/config`)
- The in-cluster environment, if running in a pod
```yml
- job_name: "ssl-kubernetes"
metrics_path: /probe
params:
module: ["kubernetes"]
static_configs:
- targets:
- "test-namespace/nginx-cert"
relabel_configs:
- source_labels: [ __address__ ]
target_label: __param_target
- source_labels: [ __param_target ]
target_label: instance
- target_label: __address__
replacement: 127.0.0.1:9219
```
### Kubeconfig
The `kubeconfig` prober exports `ssl_kubeconfig_cert_not_after` and