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
Limit EC2 SD by tag #1642
Comments
See https://prometheus.io/docs/operating/configuration/#ec2_sd_config
|
thanks @brian-brazil what do you mean by a keep or limit? I don't see that in the docs. |
See http://www.robustperception.io/automatically-monitoring-ec2-instances/ for an example, and https://prometheus.io/docs/operating/configuration/#<relabel_config> for the docs. |
Thanks @brian-brazil |
Hi @brian-brazil - how do we specify aws:cloudformation:stack-name in ? I could overcome : by _ but not having any luck with a - replacement in stack-name. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
From what I can tell from the docs/code the EC2 service discovery finds all EC2 instances for a region. In the typical EC2 deployments I work with I only want a subset of the instances to be monitored by prometheus so I'd like to tag these instances with something like Prometheus: True or Monitored: True.
I am happy to contribute the change is it is something you'll accept.
The text was updated successfully, but these errors were encountered: