Skip to content

Commit

Permalink
Bring back external label service_owner
Browse files Browse the repository at this point in the history
  • Loading branch information
KaloyanTanev committed Sep 12, 2024
1 parent bde2577 commit b9e9aab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ services:
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./data/prometheus:/prometheus
command:
- "--enable-feature=expand-external-labels"
- "--config.file=/etc/prometheus/prometheus.yml"
restart: unless-stopped

grafana:
Expand Down
2 changes: 2 additions & 0 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
global:
scrape_interval: 30s # Set the scrape interval to every 30 seconds.
evaluation_interval: 30s # Evaluate rules every 30 seconds.
external_labels:
service_owner: ${SERVICE_OWNER} # replace this with your Operator name you want to be identified by, it helps us route alerts and metrics to your notification channels easily

remote_write:
- url: https://vm.monitoring.gcp.obol.tech/write
Expand Down

0 comments on commit b9e9aab

Please sign in to comment.