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

deployment_environment / deployment.environment #811

Open
znd4 opened this issue Oct 22, 2024 · 0 comments
Open

deployment_environment / deployment.environment #811

znd4 opened this issue Oct 22, 2024 · 0 comments

Comments

@znd4
Copy link

znd4 commented Oct 22, 2024

the problem

Hi, I've found this to be a bit of a tricky thing to implement piecemeal, so it should probably in the chart proper -- OTEL has a "deployment environment" resource attribute, and grafana's prometheus and loki integrations seem to support some variation of deployment_environment labels.

proposed solution

Add a deploymentEnvironment option that adds discovery relabeling rules to the log service, and deployment.environment / deployment.environment.name to all of the otel objects in the main alloy collector.

caveat

I guess some orgs might have multiple "environments" in a single cluster, but my guess is that most clusters that k8s-monitoring would be installed into will be a part of at most one. With that in mind though, this should probably be optional

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