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

kube_ingress_tls produces duplicate metrics for duplicate Ingress hosts #2550

Open
mmckeen opened this issue Nov 7, 2024 · 1 comment
Open
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@mmckeen
Copy link

mmckeen commented Nov 7, 2024

What happened:

For an Ingress with the following spec:

  ingressClassName: external
  rules:
  - host: foo.com
    http:
      paths:
      - foo
  - host: foo.com
    http:
      paths:
      - bar
  tls:
  - hosts:
    - foo.com
    - foo.com
    secretName: foo-secret

kube-state-metrics produces duplicate kube_ingress_tls metrics resulting in Error on ingesting samples with different value but same timestamp errors when Prometheus scrapes these metrics.

What you expected to happen:

Only a single metric is produced and kube-state-metrics de-duplicates on the tls_host label.

How to reproduce it (as minimally and precisely as possible):

See above.

Anything else we need to know?:

N/A

Environment:

  • kube-state-metrics version: 2.12.0
  • Kubernetes version (use kubectl version): v1.28.13
  • Cloud provider or hardware configuration: N/A
  • Other info: N/A
@mmckeen mmckeen added the kind/bug Categorizes issue or PR as related to a bug. label Nov 7, 2024
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Nov 7, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If kube-state-metrics contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

2 participants