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

Triggers: acknowledged filter doesn't work #985

Closed
tolstiyman opened this issue Jun 10, 2020 · 11 comments
Closed

Triggers: acknowledged filter doesn't work #985

tolstiyman opened this issue Jun 10, 2020 · 11 comments
Labels
Milestone

Comments

@tolstiyman
Copy link

Describe the bug
In the query editor (Triggers mode), Acknowledged filter doesn't change anything(I know that 20 from 23 problems are acknowleged).

Expected behavior
Only acknowledged or unacknowledged triggers.

Screenshots
all
unack
ack

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
7.0.1 5.0.0 3.12.2
@heyrod
Copy link

heyrod commented Jun 22, 2020

My guess is that it incorrectly queries Zabbix. For unacknowledged alerts, the query should include "Acknowledged=0", for acknowledged -- "Acknowledged=1", and for all triggers - nothing.

You can see this at the demo dashboard https://play.grafana-zabbix.org/d/000000024/problems?orgId=2

@sirbavo
Copy link

sirbavo commented Jun 24, 2020

The v3.12.2 query editor (Triggers mode) does not save the proper parameter value to the dashboard.
image

If I manually fix the dashboard JSON model, it will show the real all triggers / acknowledged / unacknowledged values.

Dashboard JSON model:

  • wrong: the value is always 2 within the actual panel block -> "targets" -> "triggers" -> "acknowledged" section
    image
  • wrong: it is updating only the panel -> "targets" -> "options" -> "acknowledged" section, but it is also not saved properly in every case and it is not relevant in my case.

This was working with the editor in v3.11.0 (but that version has other mission critical bugs in our use cases).
Until (at least) this is not fixed, we do not have a fully working plugin for Grafana v6 and v7.

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
6.7.4 4.0.21 3.12.2
7.0.3 4.0.21 3.12.2

@alexanderzobnin
Copy link
Collaborator

HI! Can you check this issue in latest plugin version?

@sirbavo
Copy link

sirbavo commented Sep 14, 2020

Hello @alexanderzobnin!

There is no difference.


Software versions

Grafana Zabbix Grafana-Zabbix Plugin
7.0.3 4.0.21 4.0.1
7.1.5 4.0.21 4.0.1

@Positronico
Copy link

Issue seems to be present also on Problems query. The Unacknowledged filter behaves just like no filter (shows unacknowledged and acknowledged). It's possible to filter for Acknowledged only, though.

Screen Shot 2020-11-11 at 4 38 30 PM

Grafana Zabbix Grafana-Zabbix Plugin
7.0.3 4.0.21 4.0.1
7.1.5 4.0.21 4.0.1
7.3.1 4.4.10 4.0.1

@alexanderzobnin
Copy link
Collaborator

alexanderzobnin commented Nov 12, 2020

Yes, confirmed: this bug still present.
I've found a workaround that makes me to think about deprecating Triggers editor mode. With new Transform feature it's possible to use Problems mode instead of Triggers to count problems, just use Series to rows with count transformation:

Screenshot from 2020-11-12 13-10-59

Screenshot from 2020-11-12 13-05-27

In this mode filters work as expected.

@Positronico
Copy link

Something I noticed recently: I was considering the filled chat bubble as an acknowledged problem and the clear one as unacknowledged. Turns out the filled/unfilled only tells you the problem has COMMENTS in it, not necessarily the "Acknowledge" checkbox was checked.

This assumptions came from the fact in previous version there were not such checkbox. A comment was an acknowledge. But today we have the option to just add a comment without acknowledging it and even change problem severity.

Maybe there is room for UI improvement here (with different icons for ack/comments and ack checkbox defaults to checked) but I can confirm the filter is working properly for ack'ed/unack'ed problems.

@GauthierSgds
Copy link

GauthierSgds commented Apr 1, 2022

Hi,

For Grafana 8.3.7 and plugin 4.2.5 I haved the same issue. After looking in the code,

I edited line 351 in query.editor.html
ng-model="ctrl.target.options.acknowledged" --> ng-model="ctrl.target.triggers.acknowledged"

And added line acknowledged?: '1' | '0'; in interface ZBXTrigger in type.ts file

After rebuild plugin, filter works again.

Regards

@GauthierSgds
Copy link

Hi @alexanderzobnin, can you put into next release correction on query.editor.html file --> replace ng-model="ctrl.target.options.acknowledged" by ng-model="ctrl.target.triggers.acknowledged" and add line acknowledged?: '1' | '0'; in interface ZBXTrigger in type.ts file?

Thanks in advance!

@dayatto
Copy link

dayatto commented Jul 7, 2022

any help or suggest for this case ?
i'm still can't to display number of counting problem each severity using filter acknowledge or unacknowledge.
use the stats panel or table same issue.
hope any help this case
thankyou

@alexanderzobnin alexanderzobnin added this to the 4.3 milestone Dec 15, 2022
@alexanderzobnin
Copy link
Collaborator

I think I fixed it during the refactoring, so let's check how it works after release.

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

No branches or pull requests

7 participants