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

How to set colors for severity label and status label? #1887

Open
sandyboxy opened this issue Nov 21, 2023 · 1 comment
Open

How to set colors for severity label and status label? #1887

sandyboxy opened this issue Nov 21, 2023 · 1 comment

Comments

@sandyboxy
Copy link

Hello,
I am using Alerta 9.0 (with docker) and I set my custom severity in SEVERITY_MAP and COLOR_MAP as below:

SEVERITY_MAP = {
    'critical': 0,
    'high': 1,
    'medium': 2,
    'low': 5
}

COLOR_MAP = {
    'severity': {
        'critical': '#8a9900',
        'high': 'red',
        'medium': '#f23c12',
        'low': '#ffc0ef'
    },
    'text': 'black'
}

Is there a way to set customs colors for Severity and Status label since the remain gray?

alerta

@jonhammer
Copy link

This is something I was looking into as well. It would be nice to be able to change status colors in particular. Being able to have "Ack" show up as a different non-gray color, for example, would be quite useful for visually scanning active alerts and differentiating between ack'd and un-ack'd at-a-glance. (filters work of course, but some of my users don't like to filter out ACKs).

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

No branches or pull requests

2 participants