GithubHelp home page GithubHelp logo

How do annotaions work? about grafana-zabbix HOT 7 CLOSED

grafana avatar grafana commented on May 12, 2024
How do annotaions work?

from grafana-zabbix.

Comments (7)

alexanderzobnin avatar alexanderzobnin commented on May 12, 2024

Sorry, annotation now in working.

from grafana-zabbix.

alexanderzobnin avatar alexanderzobnin commented on May 12, 2024

What do you think is better - annotation selection from items or from triggers?

from grafana-zabbix.

nucleusv avatar nucleusv commented on May 12, 2024

According to http://play.grafana.org/dashboard/db/annotations?panelId=1&fullscreen&edit

I don't understand where it can be managed.

How I understand the logic, you have array of targets (itemids in zabbix ) in datasource,
annotations are the lines when trigger fires up ?

so you should select all events for every target (itemid)
https://www.zabbix.com/documentation/2.4/manual/api/reference/event/get

"output" => "extend",
"object" => 0, //trigger
"source" => 0, //by trigger
"value" => 1, //fired up trigger
"select_acknowledges" => "extend", //nice to have in tooltip by whom it was acknowledged
"selectRelatedObject" => "extend", //to get trigger name - it will annotation title
"sortfield" => ["clock", "eventid"],
"sortorder" => "DESC"

here you should decide what field to use
hostids string/array Return only events created by objects that belong to the given hosts.
objectids string/array Return only events created by the given objects.

i.e. the event is created by trigger not by itemid directly so you cannot search in events by itemid,
first you need to get all triggers for all targets - you will get trigger ids

then you should get all events: objectids : [all trigger ids]
then you should group them by trigger name you will get it in sub array as related object

from grafana-zabbix.

alexanderzobnin avatar alexanderzobnin commented on May 12, 2024

See screenshot:
2015-05-15 22-49-22 grafana - zabbix datasource - mozilla firefox
Annotations is just a marker at the graph related to some event (trigger change for example). In this plugin realization annotations get the events of triggers related to the given item.

from grafana-zabbix.

nucleusv avatar nucleusv commented on May 12, 2024

is it working now ?

from grafana-zabbix.

alexanderzobnin avatar alexanderzobnin commented on May 12, 2024

Yes, but needed to specify itemid manually. Not useful.

from grafana-zabbix.

alexanderzobnin avatar alexanderzobnin commented on May 12, 2024

Resolved by 17392c0

from grafana-zabbix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.