github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/kube-state-metrics/templates/NOTES.txt (about) 1 kube-state-metrics is a simple service that listens to the Kubernetes API server and generates metrics about the state of the objects. 2 The exposed metrics can be found here: 3 https://github.com/kubernetes/kube-state-metrics/blob/master/docs/README.md#exposed-metrics 4 5 The metrics are exported on the HTTP endpoint /metrics on the listening port. 6 In your case, {{ template "kube-state-metrics.fullname" . }}.{{ template "kube-state-metrics.namespace" . }}.svc.cluster.local:{{ .Values.service.port }}/metrics 7 8 They are served either as plaintext or protobuf depending on the Accept header. 9 They are designed to be consumed either by Prometheus itself or by a scraper that is compatible with scraping a Prometheus client endpoint. 10 11 {{- if .Values.kubeRBACProxy.enabled}} 12 13 kube-rbac-proxy endpoint protections is enabled: 14 - Metrics endpoints are now HTTPS 15 - Ensure that the client authenticates the requests (e.g. via service account) with the following role permissions: 16 ``` 17 rules: 18 - apiGroups: [ "" ] 19 resources: ["services/{{ template "kube-state-metrics.fullname" . }}"] 20 verbs: 21 - get 22 ``` 23 {{- end }}