kube friendly
This commit is contained in:
parent
9827e1865a
commit
935f8b0b82
25
README.md
25
README.md
|
@ -24,4 +24,27 @@ sources:
|
|||
- url: http://127.0.0.1:8082/metrics
|
||||
labels:
|
||||
key2: value2
|
||||
```
|
||||
```
|
||||
|
||||
## Kubernetes
|
||||
|
||||
The prometheus-exporter-merger is supposed to run as a sidecar.
|
||||
|
||||
```yaml
|
||||
...
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "8080"
|
||||
...
|
||||
spec:
|
||||
containers:
|
||||
...
|
||||
- name: prometheus-exporter-merger
|
||||
image: vadv/prometheus-exporter-merger
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
...
|
||||
```
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
func Execute() {
|
||||
|
||||
var (
|
||||
configPath = flag.String("config", "config.yaml", "Path to config")
|
||||
configPath = flag.String("config", "/config/prometheus-exporter-merger.yaml", "Path to config")
|
||||
)
|
||||
flag.Parse()
|
||||
|
||||
|
|
Loading…
Reference in New Issue