Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29525

Is there a way to use the aws_ec2 ansible inventory plugin to define a prometheus target group dynamicly?

$
0
0

I'm trying to configure a prometheus server working with ansible. I want to monitor some aws instances (ec2) but I'm stuck with the targets of prometheus. I probably should use a json file to define my targets but I don't know how to update the file when I create a new instance with ansible. Also I'm using the aws_ec2 plugin for the dynamic inventory on ansible.

So my question is: how can I use the inventory plugin to keep update the target file of prometheus without doing it manually?


Viewing all articles
Browse latest Browse all 29525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>