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

[CC-4519] Include Consul NodeID in Envoy bootstrap metadata #17139

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

freddygv
Copy link
Contributor

Description

This is being added so that metrics sent to HCP can be augmented with the source node's ID.

Opting not to add this to stats_tag out of caution, since it would increase the cardinality of metrics emitted by Envoy for all users.

There is no functional impact to Envoy expected from this change.

Testing & Reproduction steps

Added unit tests and also did the following manual test:

Ran a single dev agent with consul agent -dev and registered the following service with a sidecar:

{
  "service": {
    "name": "counting",
    "port": 8181,
    "connect": {
      "sidecar_service": {}
    }
  }
}

Ran Envoy:

consul connect envoy -sidecar-for counting

Compared the node ID in Envoy's config to the ID in the catalog:

curl -s localhost:19000/config_dump | jq '.configs[0].bootstrap.node.metadata.node_id'
curl -s localhost:8500/v1/catalog/nodes | jq '.[0].ID' 

PR Checklist

  • updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

This is being added so that metrics sent to HCP can be augmented with
the source node's ID.

Opting not to add this to stats_tag out of caution, since it would
increase the cardinality of metrics emited by Envoy for all users.

There is no functional impact to Envoy expected from this change.
@freddygv freddygv added pr/no-changelog PR does not need a corresponding .changelog entry backport/1.15 This release series is no longer active on CE. Use backport/ent/1.15. labels Apr 25, 2023
@freddygv freddygv requested review from a team, erichaberkorn and thisisnotashwin and removed request for a team April 25, 2023 23:38
@github-actions github-actions bot added the theme/cli Flags and documentation for the CLI interface label Apr 25, 2023
Copy link
Contributor

@thisisnotashwin thisisnotashwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noice!

@freddygv freddygv merged commit c5c35ec into main Apr 26, 2023
@freddygv freddygv deleted the cc-4519-collect-node-id branch April 26, 2023 16:04
freddygv added a commit that referenced this pull request Apr 26, 2023
This is being added so that metrics sent to HCP can be augmented with the source node's ID.

Opting not to add this to stats_tag out of caution, since it would increase the cardinality of metrics emitted by Envoy for all users.

There is no functional impact to Envoy expected from this change.
freddygv added a commit that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.15 This release series is no longer active on CE. Use backport/ent/1.15. pr/no-changelog PR does not need a corresponding .changelog entry pr/no-metrics-test theme/cli Flags and documentation for the CLI interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants