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

Alerts Panel got really bad after Grafana update #1868

Closed
PedroRibas13 opened this issue Aug 29, 2024 · 2 comments · Fixed by #1894
Closed

Alerts Panel got really bad after Grafana update #1868

PedroRibas13 opened this issue Aug 29, 2024 · 2 comments · Fixed by #1894

Comments

@PedroRibas13
Copy link

PedroRibas13 commented Aug 29, 2024

Before upgrading Grafana to vs 11.2, the Zabbix alerts dashboard was perfect. After the upgrade, the dashboard looked horrible and was completely impractical to use, as the simplicity of the dashboard was what made it great to use.

Before update

Image

After

Image

@PedroRibas13 PedroRibas13 changed the title Painel de Alertas ficou muito ruim após atualização do Grafana Alerts Panel got really bad after Grafana update Aug 29, 2024
@mplm17
Copy link

mplm17 commented Oct 10, 2024

Same here

@mplm17
Copy link

mplm17 commented Oct 14, 2024

Dig a little about this problem. It seems that the following css blocks are missing in the most recents versions of grafana, preventing the zabbix problems panel to display normally.

.alert-rule-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style-type: none
}
.alert-rule-item {
    align-items: center;
    background: #22252b;
    border-radius: 4px;
    box-shadow: none;
    display: flex;
    height: 100%;
    margin-bottom: 4px;
    padding: 4px 8px;
    width: 100%
}
.alert-rule-item__icon {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 0 4px 0 2px;
    width: 40px
}
.alert-rule-item__icon .fa,.alert-rule-item__icon .icon-gf {
    font-size: 200%;
    position: relative;
    top: 2px
}
.alert-list__btn {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0 2px
}

Maybe it's related to the legacy alerting depecration but I'm not sure.

Workaround:

Add this:

.alert-rule-list{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;list-style-type:none}.alert-rule-item{align-items:center;background:#22252b;border-radius:4px;box-shadow:none;display:flex;height:100%;margin-bottom:4px;padding:4px 8px;width:100%}.alert-rule-item__icon{align-items:center;display:flex;justify-content:center;padding:0 4px 0 2px;width:40px}.alert-rule-item__icon .fa,.alert-rule-item__icon .icon-gf{font-size:200%;position:relative;top:2px}.alert-list__btn{align-items:center;display:flex;justify-content:center;margin:0 2px}

Right before .alert-rule-item__body in your grafana/public/build/grafana.dark.*.css (or grafana.light.*.css, depending on your configuration)

Keep in mind that these css files are built at each grafana update. So you will have to re-do the workaround until this issue is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Complete
Development

Successfully merging a pull request may close this issue.

2 participants