-
Hi. I ran across this software today and am very excited about it for some projects I have. Thank you very much for the great work. The question I have is about VMs that come and go. In my use case I am dynamically spinning up and tearing down VMs. I'm setup to use Prometheus. What I've seen is that new VMs are not shown in Prometheus and Grafana until I restart the promitor-agent-scraper container. Likewise, if promitor-agent-scraper is started while a VM is present and then I delete it, the VM does not go away until I restart promitor-agent-scraper again. In the later case it continues to report old metrics. Is that the intent for how promitor-agent-scraper and promitor-agent-discovery should behave? Or is the intent (current or eventual) to handle new and deleted VMs, and it just isn't implemented yet? A bit more info about my setup. Here's a basic outline of a script that shows how I'm running things.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Thanks for trying Promitor and this should definitely be supported! However, I have some questions:
As you can see, Promitor is scheduled to scrape metrics every 5 minutes. For every run, it will discover the resources and scrape does. If all goes well, those VMs should be added/removed in that window. It's possible that removing will not work correctly so I'll verify that in #1244. However, additions should be done automatically, can you verify that please by starting the scraper, adding a resource and wait a while. |
Beta Was this translation helpful? Give feedback.
-
Typically, the VMs will be up between 5 and 20 minutes. Ideally Prometheus/Promitor recognizes new VMs within 30 seconds. I did try reducing the time from 5 minutes to 1 minute to make checking a little faster. I waited 6 minutes before checking. It still appears that things are getting funky, in that new VMs don't show up and old VMs don't go away. It also appears that current VMs are plotting metrics in Grafana that are stale; meaning, the CPU percentage metric stays at the same level and doesn't change, although I'm running some tasks to force the VM CPU usage to spike. Maybe some kind of error is going on that's causing all those issues? The way I'm checking on the symptoms is just via Grafana. |
Beta Was this translation helpful? Give feedback.
Typically, the VMs will be up between 5 and 20 minutes. Ideally Prometheus/Promitor recognizes new VMs within 30 seconds.
I did try reducing the time from 5 minutes to 1 minute to make checking a little faster. I waited 6 minutes before checking. It still appears that things are getting funky, in that new VMs don't show up and old VMs don't go away. It also appears that current VMs are plotting metrics in Grafana that are stale; meaning, the CPU percentage metric stays at the same level and doesn't change, although I'm running some tasks to force the VM CPU usage to spike. Maybe some kind of error is going on that's causing all those issues?
The way I'm checking on the symptoms is just vi…