I have a follow up question about cadvisor, if you have a minute. Cadvisor employ Redis and Prometheus. If I understand correctly, you configure Prometheus to scrape Docker logs. All fine and good. However, my Grafana stack already employs Prometheus to do the same, just for syslogs and such, but not Docker. Can I not place the contents of the Cadvisor/Prometheus config in the existing Prometheus implementation used with Grafana, or does Cadvisor need it’s own Prometheus instance.
Comment on It's Gonna Be A Good Day, 'Tater
MXX53@programming.dev 3 weeks ago
I just did the same thing. Grafana with Prometheus, cAdvisor, Loki, alloy. It has really stepped up my overall systems monitoring.
irmadlad@lemmy.world 3 weeks ago
__init__@programming.dev 3 weeks ago
You should be able to just add a scrape config to your existing deployment of prometheus
irmadlad@lemmy.world 3 weeks ago
Thank you for the reply. I guess I am thinking, why have multiple Prometheus instances running, eating up resources, when I could do it with just one.
MXX53@programming.dev 3 weeks ago
Sorry I didn’t get back to you right away. But this is correct. I just have Prometheus scrape cAdvisor.
__init__@programming.dev 3 weeks ago
For sure. Simplifies querying the data too, since you won’t need to deal with multiple data sources in grafana.
irmadlad@lemmy.world 3 weeks ago
I was just commenting that I’m going to have to figure out how to migrate to Alloy now as Prom is nearing it’s eol.
__init__@programming.dev 3 weeks ago
TIL Promtail is going EOL. I’ve been using it forever. Guess I’m gonna have to figure out how to migrate to alloy too if that’s meant to be its successor. At home and at work lol.
irmadlad@lemmy.world 3 weeks ago
I’m sorry to be the bearer of bad news. I read up on it about an hour ago. Of course, just as I finally get things running, they switch horses. le sigh…c’est la vie
__init__@programming.dev 3 weeks ago
Yep. Keeping up to date is a never ending battle. I try to do it often so they don’t pile up and break a ton of shit all at once. If you’re into gitops, I’m a big fan of using renovate to help automate things.