[ZBXNEXT-2976] Support of tags for configuration entities like hosts, items, triggers, graphs, ... Created: 2015 Sep 20  Updated: 2024 May 06  Resolved: 2021 May 31

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: API (A), Frontend (F)
Affects Version/s: 2.2.10
Fix Version/s: 5.4.0beta3, 5.4 (plan)

Type: New Feature Request Priority: Trivial
Reporter: Marc Assignee: Miks Kronkalns
Resolution: Fixed Votes: 30
Labels: actions, conditions, filters, tags, usability
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: PNG File 52latestdata.png.png     PNG File Ohne Titel 6.png     PDF File Tags on host and template level 1.0rc1.pdf     PNG File latestdata_tags.png     Text File log.txt     PNG File masterlatestdata.png     PNG File preproc.png     PNG File screenshot-1.png     PNG File screenshot-2.png     PNG File screenshot-3.png     PNG File screenshot-4.png    
Issue Links:
Causes
causes ZBXNEXT-4731 Host and template level tags Closed
causes ZBX-24088 Map hierarchy ignores tag filters Closed
causes ZBX-19306 Context is lost from URL in Latest da... Closed
Duplicate
is duplicated by ZBXNEXT-3070 Tagging/labeling of items (triggers, ... Closed
is duplicated by ZBXNEXT-6632 Update menu Lastest Data Closed
is duplicated by ZBXNEXT-6736 Exclude tags in problems widget. Closed
Sub-task
part of ZBXNEXT-6288 Convert screens to dashboards (frontend) Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
ZBXNEXT-6292 Support of tags for configuration ent... Specification change (Sub-task) Closed Aleksejs Sestakovs  
Team: Team B
Sprint: Sprint 69 (Oct 2020), Sprint 70 (Nov 2020), Sprint 71 (Dec 2020), Sprint 72 (Jan 2021), Sprint 73 (Feb 2021), Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021), Sprint 77 (Jun 2021)
Story Points: 10

 Description   

How about supporting tags or key words in configuration entities like hosts, items, triggers, graphs, maps, screens and possibly more?

Such tags may provide contextual information, extend frontend filtering as well as action conditions with a flexible option.

The idea is certainly not new as some sort of tagging can be found in many applications nowadays.
I see also similarities with ZBXNEXT-336, ZBXNEXT-577, ZBXNEXT-1645, ZBXNEXT-2087 and possibly more. Maybe it's even a duplicate.



 Comments   
Comment by Ryan Armstrong [ 2015 Oct 06 ]

Tags on hosts would be invaluable, especially when drilling down through a huge list of hosts.
Currently we use host groups to categorise hosts but the result is a monstrous list of host groups which is near unusable and we can only filter by one host group at a time.

Using custom tags, we could filter based on whatever we want and use host groups for their intended purpose; simply delegating permissions. Tags would in turn be used for filtering and searching.

In my mind, if we could assign any tag we liked, I'd give each host a tag for operating system, OS version, physical/virtual state, dev/test/prod environment, hosted application, etc. Then I could filter the latest data screen for all 'physical', 'production' servers running 'centos' version '6'.

FYI, Tagging hosts is a very successful feature in both AWS and Azure.

Comment by Ryan Armstrong [ 2015 Oct 06 ]

Even better would be the ability to assign tags using item values (the same way we can populate inventory items) and to assign tags via host auto registration.

Comment by Joaquin Fernandez Llamas [ 2018 Mar 27 ]

Moving from host groups to tags would be a huge usability improvement. This FR should have higher priority, right now Zabbix is lagging behind in host classification.

Comment by Marc [ 2018 Jul 23 ]

Trigger level tags implemented with ZBXNEXT-2087.

Comment by Alexei Vladishev [ 2018 Jul 23 ]

I am pretty sure host level tags are coming soon. Item level tags are coming as well, as a side effect they will replace applications as we know them.

Comment by Alexei Vladishev [ 2018 Aug 20 ]

Hey all! Please have a look at the attached acceptance criteria document that describes proposed enhancements for host and template level tags. It has all chances to be implemented in Zabbix 4.2.

Let me know what you think. Is there anything to improve? I appreciate any feedback.

Comment by Dimitri Bellini [ 2018 Oct 18 ]

Hi Alexei,
i have read the document and i think is a great improvement but do you think is possible to extend the tag usage also for Items? Because on most of our user cases that kind of approach (Item tags) could help and could provide a more granular information (Meta Information) during an event or to classify the metrics for a post analysis with third party software.
For example:

  • Host with multiple Oracle instances (track a specific resource usage by Oracle SID)
  • Network Switch: events and capacity by group of ports

Thanks very much

Comment by Marc [ 2018 Oct 18 ]

Item tags may possibly even replace Item applications.

Comment by Alexei Vladishev [ 2020 Nov 11 ]

We are replacing item applications by tags in Zabbix 5.4, stay tuned!

Comment by Dimitri Bellini [ 2020 Nov 11 ]

@Alexei very good news!

Comment by Dimitri Bellini [ 2021 Jan 15 ]

@Alexei Only today i re-read the Feature Spec and i have some question at this time (from last comment of 2018...).

Do you want use TAGS inside a Trigger formula? I ask that because could be a very nice feature to solve issue related to monitoring Cloud environment.

Usually the trigger is based on Items in my idea the Items could be replaced by their "tags"

For example: Item key: vfs.file.cksum[/etc/passwd]  - Tag: passwdcheck

Trigger Expression: {passwdcheck.diff()}>0 

In my idea if we use a Tag for a trigger we could have a single Trigger referred to all the Items that have the Tag "passwdcheck", so if we have one or more items (discovered items) we still use a single Trigger.

PS: I know you have already think about but i asked only to be sure

 

Comment by Alexei Vladishev [ 2021 Jan 15 ]

dimitri.bellini, selection of items by tags will be implemented for calculated items and trigger expressions under https://support.zabbix.com/browse/ZBXNEXT-6374

Comment by Dimitri Bellini [ 2021 Jan 15 ]

Ok understood! Thanks so much

Comment by Miks Kronkalns [ 2021 Jan 28 ]

Implemented in development branch feature/ZBXNEXT-2976-5.3.

Comment by Miks Kronkalns [ 2021 Apr 13 ]

Implemented in:

Comment by Grigory Morozov [ 2021 May 01 ]

Is this change breaking the Zabbix data source in Grafana with 'Method not found. Incorrect API "application"'?

Comment by Alexei Vladishev [ 2021 May 03 ]

negrusti, it may break things because we do not support application anymore. I think this question should be addresses to the author of the Grafana's Zabbix plugin.

Comment by Grigory Morozov [ 2021 May 03 ]

@alexei can you please correct the specification then:
https://www.zabbix.com/documentation/5.4/manual/api/reference/application
as the other developers can't obviously fix anything without it

Comment by Alexei Vladishev [ 2021 May 03 ]

negrusti, documentation be be adjusted soon, the work on Zabbix 5.4 is still in progress.

Comment by Grigory Morozov [ 2021 May 03 ]

@Alexei Vladishev how can we help? This broke the setups of many people without reasonable options for rollback. Is there any API document for Tags that we can use?

Comment by Alexei Vladishev [ 2021 May 03 ]

negrusti, there is nothing you can help, just wait for this feature to be documented. It will happen before release of Zabbix 5.4. I do not think that it is a good idea to rely on release candidates or beta software for any serious use.

Comment by Gregory Orciuch [ 2021 May 17 ]

Hi,

I encountered this behavior today when my automatic zabbix upgraded kicked in for 5.4.x.  All my zabbix-grafana integrated dashboards are broken now.

Please share any documentation for people who care. 

There are now many many people who will come and complain. You Zabbix should consider Grafana as huge market here.

I'm quite disappointed here. 

 

Did I read it right?you released (docker hubs now having latest at 5.4.0) undocumented feature which removes backward's compatibility ?! shame.

Comment by Stefan Sabolowitsch [ 2021 May 17 ]

@Alexei Vladishev
For us this is also a mean disaster, all dashboards with the zabbix plugin can no longer be used.
I also disappointed with such poor communication with the community and plugin developers.
We very much hope that there will be a solution here soon.

PS: Thanks for zabbix which we have been using since version 1.7.

Comment by Alexei Vladishev [ 2021 May 17 ]

gorciuch , StefanSa As far as I am aware all API changes are documented and the release notes contains a link to the API changes. Probably we should wait developers of 3rd party apps to catch up. What else we could do?

Comment by Stefan Sabolowitsch [ 2021 May 18 ]

@Alexei Vladishev

In the case of such important changes, it would be helpful to point them out "more clearly", as the example of Elasticsearch shows.

Comment by Alexei Vladishev [ 2021 May 18 ]

StefanSa, I agree, we should better emphasise breaking changes. It should be part of release notes and probably also what's new section on our web site.

Comment by Glebs Ivanovskis [ 2021 May 18 ]

What else we could do?

  1. You should stick to Zabbix API feature removal policy:

    When making backward incompatible changes between major releases, we usually leave the old features as deprecated in the next release, and only remove them in the release after that.

  2. When

    Occasionally, we may remove features between major releases without providing any backward compatibility.

    you should notify third party developers in advance, at least those who maintain projects that have substantial amount of stars on GitHub. (Fun fact: Grafana Zabbix plugin has more than Zabbix itself )
Comment by Miks Kronkalns [ 2021 May 19 ]

Updated API documentation:

API objects updated:

API methods updated:

Other changes:

Comment by dimir [ 2021 May 19 ]

Grafana users, looks like you're saved: https://mobile.twitter.com/alexanderzobnin/status/1394669353061265409?s=19

Comment by Miks Kronkalns [ 2021 May 25 ]

Updated general documentation:

Generated at Tue Apr 01 21:12:47 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.