Kube-state-metrics: Export readiness and liveness metrics

Created on 13 Mar 2019  路  14Comments  路  Source: kubernetes/kube-state-metrics

/kind feature
Currently there is no way to monitor liveness and readiness probe failures using kube-state-metrics. I would very much like to be able to see these for every pod.

kinfeature lifecyclrotten

Most helpful comment

The kubelet has the /metrics/probes path, which exposes the results of probes. Given that's where the metrics originate that's also a better place that kube-state-metrics :slightly_smiling_face: .

All 14 comments

The kubelet has the /metrics/probes path, which exposes the results of probes. Given that's where the metrics originate that's also a better place that kube-state-metrics :slightly_smiling_face: .

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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.

The kubelet has the /metrics/probes path, which exposes the results of probes. Given that's where the metrics originate that's also a better place that kube-state-metrics 馃檪 .

@brancz Can you please elaborate on this? We are currently using Datadog with our k8s cluster and the dd-agent does not seem to get this metric.

I know nothing about the datadog agent so I can鈥檛 say why. I see them in Prometheus :)

I know nothing about the datadog agent so I can鈥檛 say why. I see them in Prometheus :)

@brancz: Can you please share how to configure prometheus.yml to get these probe metrics ?

+1 @brancz Can you elaborate on how you are finding the liveness/readiness probes via Promtheus? I have the same interest and am not finding the metrics as is. Maybe this depends on the version of k8s/kube-state-metrics/prometheus or the configuration. Thanks!

/remove-lifecycle stale
/reopen

This is a good requirement which is needed to be available to show on Prometheus Dashboard using Grafana. Couldnt find any Grafana dashboard or Prometheus command to show this.

/help-needed

@sb1975: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/remove-lifecycle stale
/reopen

This is a good requirement which is needed to be available to show on Prometheus Dashboard using Grafana. Couldnt find any Grafana dashboard or Prometheus command to show this.

/help-needed

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.

These metrics already exist on the kubelet endpoint /metrics/probes, which I think is where it belongs.

@brancz What are the metric names in Prometheus that you're seeing?

@acannon828 and others who might stumble upon this thread searching for the same:

prober_probe_total

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dghubble picture dghubble  路  3Comments

therc picture therc  路  4Comments

jackzampolin picture jackzampolin  路  8Comments

stevebail picture stevebail  路  8Comments

lilic picture lilic  路  3Comments