kube friendly

This commit is contained in:
Dmitry Vasiliev 2020-05-17 17:13:21 +03:00
parent 9827e1865a
commit 935f8b0b82
No known key found for this signature in database
GPG Key ID: C9A6FF8856B941E3
2 changed files with 25 additions and 2 deletions

View File

@ -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
...
```

View File

@ -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()