1
0
mirror of https://github.com/ribbybibby/ssl_exporter.git synced 2024-11-27 08:31:02 +02:00

Fix examples in the README

This commit is contained in:
Rob Best 2020-11-16 08:46:28 +00:00
parent fdda9c3eca
commit 8cde56ce6a

View File

@ -179,7 +179,7 @@ One specific usage of this prober could be to run the exporter as a DaemonSet in
Kubernetes and then scrape each instance to check the expiry of certificates on
each node:
```
```yml
scrape_configs:
- job_name: "ssl-kubernetes-file"
metrics_path: /probe
@ -205,19 +205,19 @@ Provide the namespace and name of the secret in the form `<namespace>/<name>` as
the target:
```
curl "localhost:9219/probe?module=kubernetes&target=kube-system/secret-name
curl "localhost:9219/probe?module=kubernetes&target=kube-system/secret-name"
```
Both the namespace and name portions of the target support glob matching (as provided by the
[doublestar](https://github.com/bmatcuk/doublestar) package):
```
curl "localhost:9219/probe?module=kubernetes&target=kube-system/*
curl "localhost:9219/probe?module=kubernetes&target=kube-system/*"
```
```
curl "localhost:9219/probe?module=kubernetes&target=*/*
curl "localhost:9219/probe?module=kubernetes&target=*/*"
```