Add macros support for update intervals
(ZBXNEXT-1675)
|
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | API (A), Frontend (F), Proxy (P), Server (S), Templates (T) |
Affects Version/s: | None |
Fix Version/s: | 3.4.0alpha1, 3.4 (plan) |
Type: | Change Request (Sub-task) | Priority: | Trivial |
Reporter: | Rostislav Palivoda | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() |
Team: | |
Sprint: | Sprint 1, Sprint 2, Sprint 3, Sprint 4, Sprint 5, Sprint 6, Sprint 7, Sprint 8, Sprint 11 |
Story Points: | 1 |
Comments |
Comment by Martins Valkovskis [ 2017 Apr 27 ] |
Updated documentation:
glebs.ivanovskis Few comments:
And probably it worth noting that for items, LLD rules and item prototypes support of user macros in 'Update interval' actually means support of user macros in 'Update interval' and 'Custom intervals'. Probably a few examples can be extracted from use cases described in the specification. Like using item update interval macro in trigger expression or configuring working hours as a macro and using it in item flexible intervals to increase polling frequency during business hours. martins-v Added the examples to user macro page. martins-v I've tried to address all the issues in the comments. Except the screenshot for LLD, which cannot be made properly because the field length in custom intervals does not allow to display a longer macro fully... RESOLVED glebs.ivanovskis Great respect for such attention to detail! {$LONG_INTERVAL};{$SHORT_INTERVAL}/{$WORKING_HOURS} Users will write such expressions only when configuring items via API, normally they will use frontend form. martins-v I do not really intend to remove all older history of 'supported since' notes, however, as the amount of info in documention grows and Zabbix versions are released more often, I believe we need to start removing some 'supported since' notes at least partially in places where they are becoming an "obstruction". The reason why User macro supported by location page is in the appendixes is that we try to move sections containing longer lists of detail in there. It helps to keep the main section of documentation more compact. LLD macro page may end up in appendixes too, if we dramatically increase the number of locations where they are supported. There is room for criticism to such approach, as even the important trigger function page is in the appendixes. However, it is probably better than the approach we had before Zabbix 2.0, when documentation in many sections was one long list following another. I've added a screenshot to example 5. ZBXNEXT-1675.(66) has been addressed. RESOLVED glebs.ivanovskis Perfect! Thank you for explanations! |
Comment by Martins Valkovskis [ 2017 Apr 27 ] |
glebs.ivanovskis, can you comment on what we need to mention in the upgrade notes regarding this issue? Also, does anything change for the user experience regarding flexible intervals? |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Apr 27 ] |
Basically, whatever from Database section of specification that is suitable for end user documentation. Most importantly, we should mention that Keep lost resources setting of LLD rules containing macro will be set to 25 years during upgrade. We convert this setting from days into seconds. We can't simply append "d" since syntax "{$MACRO}d" is not supported and we can't convert macro values to seconds since they may be used in other places. Therefore, this is something to take care of manually. Less important things include History/Trend storage period maximum reduction to 25 years and action step duration maximum reduction to 1 week. |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Apr 27 ] |
Custom intervals will support macros too. Flexible interval part featuring interval itself will support time units: |
Comment by Glebs Ivanovskis (Inactive) [ 2017 May 10 ] |
(1) May or may not be related to this task. Broken link Time-unit symbols in internal items, trigger functions, internal and aggregate checks. I fixed them, please review. sasha Thanks! CLOSED |