kube-state-metrics icon indicating copy to clipboard operation
kube-state-metrics copied to clipboard

[regression] /metrics port down when not existing CRD are listed in config file

Open bmm-alc opened this issue 1 year ago • 8 comments

What happened: we use https://github.com/fluxcd/flux2-monitoring-example/blob/bcae1ef44963da89caabe962a93280c0dfad3381/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml as part of our config for FluxCD, but we didn´t deploy resourcesimagepolicies and imageupdateautomations from apiGroup image.toolkit.fluxcd.io (they are optional and we don't use them). Before 2.11.0 release it would not cause any problem, except recurring warning messages.

since version 2.11.0, as long as theses resources are listed, the '/metrics' is down from prometheus POV removing them, brought back the endpoint up in prometheus.

What you expected to happen: /metrics to be up and running

How to reproduce it (as minimally and precisely as possible): declaring not deployed resources should trigger the issue.

Anything else we need to know?:

Environment:

  • kube-state-metrics version: 2.11.0
  • Kubernetes version (use kubectl version): 1.29.1
  • Cloud provider or hardware configuration: scaleway

bmm-alc avatar Mar 29 '24 08:03 bmm-alc

Could you provide steps to reproduce this issue?

CatherineF-dev avatar Apr 03 '24 13:04 CatherineF-dev

closing because I don't have time to investigate this

bmm-alc avatar Apr 08 '24 11:04 bmm-alc

Okay, we can keep it open and wait others to provide steps to reproduce. Feel it might be an issue.

/reopen

CatherineF-dev avatar Apr 09 '24 01:04 CatherineF-dev

@CatherineF-dev: Reopened this issue.

In response to this:

Okay, we can keep it open and wait others to provide steps to reproduce. Feel it might be an issue.

/reopen

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/test-infra repository.

k8s-ci-robot avatar Apr 09 '24 01:04 k8s-ci-robot

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jul 08 '24 01:07 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Aug 07 '24 01:08 k8s-triage-robot

/assign @rexagod /triage accepted

logicalhan avatar Aug 22 '24 16:08 logicalhan

/remove-lifecycle rotten

logicalhan avatar Aug 22 '24 16:08 logicalhan