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

Kubernetes service discovery: add provider ID label #9603

Merged

Conversation

EdSchouten
Copy link
Contributor

When using Kubernetes on cloud providers, nodes will have the
spec.providerID field populated to contain the cloud provider specific
name of the EC2/GCE/... instance.

Let's expose this information as an additional label, so that it's
easier to annotate metrics and alerts to contain the cloud provider
specific name of the instance to which it pertains.

Signed-off-by: Ed Schouten eschouten@apple.com

Copy link
Member

@brancz brancz left a comment

Choose a reason for hiding this comment

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

lgtm, sorry for taking so long to review!

@brancz
Copy link
Member

brancz commented Nov 22, 2021

looks like we need to resolve a conflict, otherwise this looks great!

When using Kubernetes on cloud providers, nodes will have the
spec.providerID field populated to contain the cloud provider specific
name of the EC2/GCE/...  instance.

Let's expose this information as an additional label, so that it's
easier to annotate metrics and alerts to contain the cloud provider
specific name of the instance to which it pertains.

Signed-off-by: Ed Schouten <eschouten@apple.com>
@EdSchouten EdSchouten force-pushed the eschouten/20211019-spec-provider-id branch from 25e0a21 to 4edb998 Compare November 22, 2021 09:00
@EdSchouten
Copy link
Contributor Author

No worries! Just rebased this change!

@roidelapluie roidelapluie merged commit a3e9628 into prometheus:main Dec 6, 2021
@EdSchouten EdSchouten deleted the eschouten/20211019-spec-provider-id branch December 6, 2021 21:41
valyala added a commit to VictoriaMetrics/VictoriaMetrics that referenced this pull request Jan 13, 2022
…ider_id` label for discovered Kubernetes nodes in the same way as Prometheus does

See prometheus/prometheus#9603
valyala added a commit to VictoriaMetrics/VictoriaMetrics that referenced this pull request Jan 13, 2022
…ider_id` label for discovered Kubernetes nodes in the same way as Prometheus does

See prometheus/prometheus#9603
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

3 participants