Commit 75cae20
authored
fix(prometheus): quote external_labels values in YAML template (#447)
## Summary
- Add double quotes around `$SERVICE_OWNER`, `$CLUSTER_NAME`,
`$CLUSTER_PEER` and `$PROM_REMOTE_WRITE_TOKEN` in
`prometheus.yml.example`
- Values substituted by `sed` in `run.sh` can contain YAML-special
characters (`#`, `:`, `[`, etc.) that break config parsing
- `$ALERT_DISCORD_IDS` was already quoted — this aligns the rest
## Test plan
- [ ] `docker compose up -d` with `CLUSTER_NAME` containing `#` or `:`
characters
- [ ] Verify prometheus starts and external_labels appear correctly1 parent 5b53831 commit 75cae20
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments