Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devenv: Allow configuring alertmanager config for prometheus docker block #89558

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

gillesdemey
Copy link
Member

What is this feature?

This PR allows configuration of the Alertmanager in the Prometheus docker block.

The default config is taken from the ha example as per the default Alertmanager image.

@gillesdemey gillesdemey requested a review from a team as a code owner June 21, 2024 14:14
@gillesdemey gillesdemey changed the title Alerting: Allow configuring alertmanager config for prometheus docker block Devenv: Allow configuring alertmanager config for prometheus docker block Jun 21, 2024
@gillesdemey gillesdemey added the area/devenv developer environment related label Jun 21, 2024
@grafana-delivery-bot grafana-delivery-bot bot added this to the 11.2.x milestone Jun 21, 2024
volumes:
- ${PWD}/docker/blocks/prometheus/alertmanager.yml:/etc/alertmanager/alertmanager.yml
command: >
--config.file=/etc/alertmanager/alertmanager.yml
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically not necessary as this is the default path defined in the Dockerfile for the image but I prefer explicit commands instead of having to dig around in the upstream dockerfiles

Copy link
Member

@tomratcliffe tomratcliffe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely, thanks - I was trying to get a time_interval defined in the config as well. Would be good for that to be in there as well so we have something defined in the Alerting UI but not essential for this PR 👍

@gillesdemey
Copy link
Member Author

We can follow-up with a kitchen-sink example 👍

@gillesdemey gillesdemey added the no-changelog Skip including change in changelog/release notes label Jun 22, 2024
@gillesdemey gillesdemey enabled auto-merge (squash) June 22, 2024 11:20
@gillesdemey gillesdemey merged commit c0641a0 into main Jun 22, 2024
27 checks passed
@gillesdemey gillesdemey deleted the alerting/alertmanager-config-docker-block branch June 22, 2024 11:20
@aangelisc aangelisc modified the milestones: 11.2.x, 11.2.0 Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/alerting Grafana Alerting area/devenv developer environment related area/docker no-changelog Skip including change in changelog/release notes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants