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

question about color bars #11

Open
jdbarnes-isi opened this issue Jul 28, 2020 · 4 comments
Open

question about color bars #11

jdbarnes-isi opened this issue Jul 28, 2020 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@jdbarnes-isi
Copy link

I noticed that color is set dynamically, but being unfamiliar with go code and classing, I wasn't sure if it is possible to operate on the "severity" label to set a color of #ffcc00 for warnings instead of red.

I will play with the code later if I have time.

@cpanato cpanato added this to the v0.2.0 milestone Mar 5, 2021
@cpanato cpanato added enhancement New feature or request help wanted Extra attention is needed labels Mar 5, 2021
@cpanato
Copy link
Owner

cpanato commented Mar 5, 2021

We can update to use the name instead of hex code

@jdbarnes-isi
Copy link
Author

Right, the issue isnt the name, but the ability to set a color based on some other string (like severity, or other arbitrary value) to set colors on the attachment... For example, alertmanager can send Warning and Critical, but right now all show red bars, whether it's a critical issue or not.

I will definitely be looking at this when I get through some go tutorials & documentation, unless you get to it first.

@cpanato
Copy link
Owner

cpanato commented Mar 6, 2021

@jdbarnes-isi ahh got it! I will see how I can use that, thanks for the insight

@cpanato
Copy link
Owner

cpanato commented Mar 8, 2021

I was taking a look at the code, and today it set the color bar based on the Alertmanager Status field, which can be "firing" (red) or "resolved" (green)

the fields you mentioned are more of a severity field, and this usually is used to route the alert to a specific endpoint.

the severity field already shows up in the message. The severity is more tricky because you can set your own severity name

EVlasova pushed a commit to soft-stech/mattermost-plugin-alertmanager that referenced this issue Jul 27, 2022
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](mysticatea/eslint-utils@v1.4.0...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants