Skip to content
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

How to add "exportedTagsOnMetrics" for multiple AWS namespaces #66

Open
Preeti011987 opened this issue Oct 7, 2024 · 0 comments
Open

Comments

@Preeti011987
Copy link

HI,

I have a requirement, where I have to add tags from multiple AWS namespaces:

apiVersion: v1alpha1
discovery:
exportedTagsOnMetrics:
AWS/EC2:
- ProcessName
- ServiceName
- Environment
jobs:
- type: AWS/EC2
regions:
- us-east-1
roles:
- roleArn: arn:aws:iam::AccountNumber:role/role-name
searchTags:
- key: ProcessName
value: example
- key: ServiceName
value: cloudwatch
- key: Environment
value: nonprod
metrics:
- name: CPUUtilization
statistics: [Average]

If I am adding searchTags then those tags are showing only in "aws_ec2_info" metric, I don't see them in other aws_ec2 metrics.
I understand if I am adding tags in "exportedTagsOnMetrics" then I can get the tags in metric also, but it is present at discovey level, not at job level, so what if I want to have multiple namespaces for "exportedTagsOnMetrics"
How can I do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant