Skip to content

Conversation

@bl1nk
Copy link
Contributor

@bl1nk bl1nk commented Apr 22, 2025

Hey all,

this is my first contibution to alertmanager. Please let me know if I missed something.

There are two changes in this PR, but hey seemed very related:

  • Document the (already existing) feature of enabling HTML message formatting when using Pushover
  • Add the possibility to use monospace formatting for messages in Pushover (+documentation, +test)

API documentation can be found here.

Expire duration `yaml:"expire,omitempty" json:"expire,omitempty"`
TTL duration `yaml:"ttl,omitempty" json:"ttl,omitempty"`
HTML bool `yaml:"html" json:"html,omitempty"`
Monospace bool `yaml:"monospace" json:"monospace,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like we are missing omitempty on the yaml tag.

Copy link
Contributor Author

@bl1nk bl1nk May 4, 2025

Choose a reason for hiding this comment

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

Should the HTML yaml tag have an omitempty as well? It previously did not have it, so I kept this in line with the other bool. I added it to both now. :)

Copy link
Collaborator

@grobinson-grafana grobinson-grafana left a comment

Choose a reason for hiding this comment

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

A couple small changes, otherwise LGTM! 👍

@bl1nk bl1nk force-pushed the push-zpxrtwlxttso branch from de1e7da to 8468399 Compare May 4, 2025 15:25
bl1nk added 2 commits May 4, 2025 21:14
Signed-off-by: Markus Cisler <hello@markuscisler.com>
Signed-off-by: Markus Cisler <hello@markuscisler.com>
@bl1nk bl1nk force-pushed the push-zpxrtwlxttso branch from 8468399 to 90f24e0 Compare May 4, 2025 19:14
@bl1nk bl1nk requested a review from grobinson-grafana May 5, 2025 07:07
@grobinson-grafana grobinson-grafana merged commit b49dfc0 into prometheus:main May 5, 2025
11 checks passed
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.

2 participants