diff --git a/README.md b/README.md index 8a4d225..769ae22 100644 --- a/README.md +++ b/README.md @@ -24,4 +24,27 @@ sources: - url: http://127.0.0.1:8082/metrics labels: key2: value2 -``` \ No newline at end of file +``` + +## 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 +... +``` diff --git a/cmd/main.go b/cmd/main.go index 59cc74e..7f8847b 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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()