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

Junk disocvered items #1

Open
turtle0x1 opened this issue Oct 8, 2021 · 4 comments
Open

Junk disocvered items #1

turtle0x1 opened this issue Oct 8, 2021 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@turtle0x1
Copy link
Owner

Not sure if its the way i've built the template (quite likely) or the way the Zabbix Prometheus parser works but it tries to generate some wacky combos of metrics / devices that get disabled because they dont exist.

For example see bellow screenshot where it tries to generate a rule for lxd_disk_written_bytes_total for network devices.

zabbix_lxd

If you have any idea id be interested to know!

@turtle0x1 turtle0x1 added the help wanted Extra attention is needed label Oct 8, 2021
@intrepidsilence
Copy link

I am looking into this and I am hoping to have it solved in a day or two at the most. I think the issue comes in with having multiple levels of data that have to be grouped together. It looks like what you wrote somehow gets a list of all of the devices and applies those devices to all metrics without a match. I think we may have to use more than one discovery rule due to the multi-level matching requirement.

@turtle0x1
Copy link
Owner Author

Awesome, thank you 😄

How this repository is supposed to work is something like;

# download repo
git clone https://github.com/turtle0x1/lxd-metrics-zabbix.git
# go into the repo
cd lxd-metrics-zabbix
# get a latest metrics sample
lxc query /1.0/metrics > build_template/metric_sample.txt
# rebuild the template based on the latest sample
php build_template/updateTemplate.php

Running this now (as this is abit behind) I can see there is a new param lxd_procs_total and a bug adding a junk rule lxd_procs_total[{##} (the {##} is the bug).

That is some what beside the point so any advise or hints to fixing the original issue would be welcome.

@intrepidsilence
Copy link

Good to know, thanks. I am still struggling to get it to work. I found a write-up on monitoring something else with Prometheus that I am going to read and see if it helps but I have not had time yet. This may take longer than I hoped for but I am still hoping to get it figured out. There has to be a way.

@intrepidsilence
Copy link

I have not forgotten this, just got too busy to look at it (as happens). I am hoping to pick it back up again soon. Fingers crossed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants