kubernetes / kube-state-metrics

Add-on agent to generate and expose cluster-level metrics.
https://kubernetes.io/docs/concepts/cluster-administration/kube-state-metrics/
Apache License 2.0
5.36k stars 2k forks source link

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

Open bmm-alc opened 6 months ago

bmm-alc commented 6 months ago

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:

CatherineF-dev commented 5 months ago

Could you provide steps to reproduce this issue?

bmm-alc commented 5 months ago

closing because I don't have time to investigate this

CatherineF-dev commented 5 months ago

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

/reopen

k8s-ci-robot commented 5 months ago

@CatherineF-dev: Reopened this issue.

In response to [this](https://github.com/kubernetes/kube-state-metrics/issues/2354#issuecomment-2043951561): >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](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
k8s-triage-robot commented 2 months ago

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

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

You can:

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

/lifecycle stale

k8s-triage-robot commented 1 month ago

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:

You can:

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

/lifecycle rotten

logicalhan commented 1 month ago

/assign @rexagod /triage accepted

logicalhan commented 1 month ago

/remove-lifecycle rotten