Skip to content

Commit

Permalink
kube friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
vadv committed May 17, 2020
1 parent 9827e18 commit 935f8b0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
...
```
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 935f8b0

Please sign in to comment.