Skip to content

fix(prometheus): quote external_labels values in YAML template#447

Merged
apham0001 merged 1 commit intomainfrom
fix/prometheus-yaml-quoting
Mar 12, 2026
Merged

fix(prometheus): quote external_labels values in YAML template#447
apham0001 merged 1 commit intomainfrom
fix/prometheus-yaml-quoting

Conversation

@apham0001
Copy link
Contributor

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 correctly

Unquoted sed-substituted values can break YAML parsing when
cluster names contain special characters (#, :, etc).
@apham0001 apham0001 merged commit 75cae20 into main Mar 12, 2026
3 checks passed
@apham0001 apham0001 deleted the fix/prometheus-yaml-quoting branch March 12, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants