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

Add expanding on environment for stats tags #13049

Closed
wants to merge 2 commits into from

Conversation

jorgemarey
Copy link
Contributor

This PR ands enviroment expansion for envoy stats tags. This, along with hashicorp/nomad#12959 will allow us to do things like in the proxy configuration:

kind = "proxy-defaults"
name = "global"

Config {
      envoy_dogstatsd_url = "udp://172.26.64.1:9125"
      envoy_stats_tags = [
        "alloc_id=${NOMAD_ALLOC_ID}",
        "nomad_group=${NOMAD_GROUP_NAME}",
        "nomad_job=${NOMAD_JOB_NAME}",
        "nomad_namespace=${NOMAD_NAMESPACE}",
      ]
}

@eculver eculver self-assigned this May 24, 2022
@Amier3
Copy link
Contributor

Amier3 commented May 25, 2022

Hey @jorgemarey

Thanks for making this PR! The team talked about this today and we really like the change, but we're not sure if this should be set on the proxy-defaults layer ( mainly because adding new variables would require a envoy restart, which might lead to a bad UX ). There's also some security considerations we have to make.

We'll sync up on this again shortly and hopefully get you some feedback back on how we'd like to approach this. Thank you again!

@github-actions
Copy link

This pull request has been automatically flagged for inactivity because it has not been acted upon in the last 60 days. It will be closed if no new activity occurs in the next 30 days. Please feel free to re-open to resurrect the change if you feel this has happened by mistake. Thank you for your contributions.

@github-actions github-actions bot added the meta/stale Automatically flagged for inactivity by stalebot label Jul 25, 2022
@jorgemarey
Copy link
Contributor Author

Hi @Amier3 any news on this?

@github-actions github-actions bot removed the meta/stale Automatically flagged for inactivity by stalebot label Aug 3, 2022
@jorgemarey jorgemarey changed the title Add expansing on environment for stats tags Add expanding on environment for stats tags Aug 24, 2022
@jorgemarey
Copy link
Contributor Author

I think that if you don't consider this to be OK. We can close this in favor of hashicorp/nomad#14311

@david-yu
Copy link
Contributor

Hi @jorgemarey I'll go ahead and close this in favor of the Nomad PR you referenced. We believe that is probably a better path forward t get those stats tags for Nomad in.

@david-yu david-yu closed this Aug 26, 2022
@jorgemarey
Copy link
Contributor Author

Hi @david-yu, Yeah, you're right, it looks like a better path.

@jorgemarey jorgemarey deleted the f-envoy-expand-env branch August 26, 2022 20:53
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

Successfully merging this pull request may close these issues.

None yet

4 participants