Greetings,
While I use Zabbix heavily, recently I've been able to just use the amazing community templates for everything. Well, I just got some new gear in and not finding what I need so I'm crafting my own. This new gear spits out data from Prometheus. I used this excellent blog post [1] to build an HTTP agent item from which I built item prototype under discovery. Worked like a champ! Sub-30 minutes and I had the first items poling in. Just to keep in theme with that blog post (and not confuse the issue with the items I'm monitoring), my template is pulling in data from the low level discovery rule using the equivalent of:
Great! Now I've got all these individual items in my latest data. But, that's really not useful to me. What would be useful, however, is if I had the sum of the latest. Now, I kinda hacked this together in a graph where I pulled in each individual item, but not only is that really laborious but it would break every time one of these items changes, removes, adds, ect. What I want is a graph that is the equivalent of "add all the last values of known items together and display that as a graph with history". I tried Aggregate checks, but I'm just not getting data. Sticking with the blog theme, I did a grpsum["Prometheus", Total, last, 0] with nothing returned. I tweaked it to match the MACRO definitions but got an error "No items for key "Total in groups {#METRIC}".
I tried creating graph prototypes, but all of them failed except for creating a single graph per item, which is not at all what i want and is duplicate from just going to the Latest Data.
I did some online searching, but nothing has come up that has worked for me under Zabbix 4.4.4. I've now been trying for twice as long as it took to pull the metrics in and so I figured it was time to ask for help.
Can someone help point me in the right direction to get a single sum graph of all the discovered items, please?
Thanks!
[1] https://blog.zabbix.com/zabbix-4-2-p...egration/7558/
While I use Zabbix heavily, recently I've been able to just use the amazing community templates for everything. Well, I just got some new gear in and not finding what I need so I'm crafting my own. This new gear spits out data from Prometheus. I used this excellent blog post [1] to build an HTTP agent item from which I built item prototype under discovery. Worked like a champ! Sub-30 minutes and I had the first items poling in. Just to keep in theme with that blog post (and not confuse the issue with the items I'm monitoring), my template is pulling in data from the low level discovery rule using the equivalent of:
Code:
{#METRIC}{device="{#DEVICE}"}
I tried creating graph prototypes, but all of them failed except for creating a single graph per item, which is not at all what i want and is duplicate from just going to the Latest Data.
I did some online searching, but nothing has come up that has worked for me under Zabbix 4.4.4. I've now been trying for twice as long as it took to pull the metrics in and so I figured it was time to ask for help.
Can someone help point me in the right direction to get a single sum graph of all the discovered items, please?
Thanks!
[1] https://blog.zabbix.com/zabbix-4-2-p...egration/7558/
Comment