# Unable to View Kubernetes Component SLI Metrics on Prometheus UI

**URL:** <https://discuss.prometheus.io/t/unable-to-view-kubernetes-component-sli-metrics-on-prometheus-ui/3150>\
**Category:** Exporters and Metrics\
**Created:** [October 3, 2024, 6:52am UTC](https://discuss.prometheus.io/t/unable-to-view-kubernetes-component-sli-metrics-on-prometheus-ui/3150 "2024-10-03T06:52:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabh](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@saurabh](https://discuss.prometheus.io/u/saurabh)\
**Post date:** [October 3, 2024, 6:52am UTC](https://discuss.prometheus.io/t/unable-to-view-kubernetes-component-sli-metrics-on-prometheus-ui/3150/1 "2024-10-03T06:52:14Z")

</div>

- job\_name: ‘sli-metrics-component’  
scheme: https  
authorization:  
type: Bearer  
credenetials: “”  
tls\_config:  
insecure\_skip\_verify: true  
metrics\_path: /metrics/slis  
kubernetes\_sd\_configs:
  - role: node

Reference Document : [Kubernetes Component SLI Metrics | Kubernetes](https://kubernetes.io/docs/reference/instrumentation/slis/)

I have created a job in the Prometheus Helm values file to scrape Kubernetes Component SLI metrics. When I execute the command `kubectl get --raw /metrics/slis`, I receive the following two metrics: `kubernetes_healthcheck` and `kubernetes_healthchecks_total`.

According to the reference document, this metric endpoint is exposed on the serving HTTPS port of each component, specifically at the path `/metrics/slis`. I have created a service account with cluster view role access, and I can see that my target appears healthy in the Targets and Service Discovery sections of the Prometheus UI. However, I am unable to see the related metrics (`kubernetes_healthcheck` and `kubernetes_healthchecks_total`) when querying in the Prometheus UI.

While I can successfully retrieve these metrics using the command `kubectl get --raw /metrics/slis`, I encounterd an issue with the following curl command:  
curl -k -H “Authorization: Bearer ” https://:10250/metrics/slis

The request authenticates correctly, but I only see the last two lines as comments and not the expected metrics. In contrast, when I execute:

curl -k -H “Authorization: Bearer ” https://:10250/metrics/cadvisor

I can see metrics related to cAdvisor, but the /metrics/slis path returns nothing and does not produce any error messages. I have also tried /metrics/slis request by giving cluster admin role service account token but still facing the same issue.

For your information, I am using EKS (1.29) with self-managed nodes.
