Hey guys my issue here is as stated, the kube-state-metrics are not being scraped by Prometheus, therefore my Grafana dashboards tell me that I have no data when displaying my pod metrics.
When I do:
curl stateMetricsIP:8080/metrics
it displays all the state-metrics. But these metrics are not present within the /metrics endpoint of Prometheus.
I suspect that the problem is within the prometheus.yaml kube-state-metrics job but I'm not sure.
My configuration on Prometheus side for the job is
- job_name: 'kube-state-metrics'
honor_timestamps: true
scrape_interval: 5s
scrape_timeout: 5s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- kube-state-metrics.ops.svc.cluster.local:8080
Am I missing something here? Both my services are working fine, prometheus gives me the 'OK' for kube-state-metrics target as well.