[prometheus-users] Filter one query by value of another

2021-03-17 Thread Patrick Macdonald
This seems a pretty simple thing to achieve so apologies if it's been answered here a hundred times before. If I have two metrics : "state" "swap" Each metric has records from different hosts, so they both have a "host" label. eg 1. state, label {host="machineA"} value 0 2. state, label {h

[prometheus-users] Best practice for gathering metrics from client sites

2020-12-14 Thread Patrick Macdonald
This might be more of a general networking question than a Prometheus question, but I thought I'd ask anyway. If we have a Prometheus server on site-A and an arbitrary number of client sites, each with hardware we might want monitor, is there best practice for how to achieve this? I'm assuming

[prometheus-users] Beginner user : collector returning zero on occasion

2020-12-12 Thread Patrick Macdonald
I'm just starting with prometheus. I've setup a python collector that I'm successfully scraping. The collector is doing a few api queries with one of our products. This can take 5-10 seconds. Even if I set the scrape duration to greater than the maximum query time, I'm finding the collector is