Deep Kubernetes Insights
Kube-state-metrics provides detailed metrics about the state of Kubernetes objects, which can offer deeper insights into the health and performance of a Kubernetes cluster compared to basic node and pod metrics.
Prometheus Integration
It is designed to generate metrics in a format that is compatible with Prometheus, making it easy to integrate into existing Prometheus-based monitoring setups.
Real-Time Monitoring
Kube-state-metrics continuously monitors Kubernetes API server for object state changes and updates metrics in real-time, ensuring that monitoring information is up-to-date.
Open Source and Community Supported
Being an open-source project under the Kubernetes umbrella, kube-state-metrics benefits from active community development, contributions, and support.
Lightweight
Kube-state-metrics is designed to be lightweight and non-intrusive, as it only scrapes the Kubernetes API to expose metrics without altering any state itself.
With Kube-State metrics, you get a complete view of the core components and overall health of your Kubernetes clusters. You can monitor the real-time state and quickly identify any issues or bottlenecks. Detailed container-level metrics allow you to visually navigate through different layers of your cluster, making it easier to spot problems like memory leaks in individual containers. This helps you resolve issues... - Source: dev.to / 3 months ago
Those are entirely different types of data. You can get that from something like kube-state-metrics. Source: almost 2 years ago
Kubernetes itself will not notify you, the way I've seen people do this, is to use something like kube-state-metrics or node_exporter, export that to Prometheus (or preferrably VictoriaMetrics because Prometheus is terrible IMO), and then setup alarms on that with alertmanager or equivalent, or just look at dashboards regularly with Grafana. Realistically I recommend only setting alerts on disk usage and... Source: about 2 years ago
We then have various other Metrics called Kubernetes Workload Metrics. These are the dashboards with names that start with “Kubernetes / Compute Resources / Workload”. These dashboards are specific to the services you are running. They take into account the Kubernetes Workloads in your various namespaces, using kube-state-metrics. For a closer look, check out otel_demo_app_k8s_dashboard.tf. - Source: dev.to / over 2 years ago
The first step to optimizing costs is gaining visibility into your costs using tools. Kubernetes provides a Metrics Server and kube-state-metrics that can give you the overall picture of resource utilization by your cluster. There are more tools that provide more granular breakdowns and provide dashboards with business metrics, infra cost, and alerting functionalities. Here are some strategies to optimize your... - Source: dev.to / over 2 years ago
If you have the kube-state-metrics + Prometheus with a sufficiently long retention time, then you could write a PromQL query based on the "kube_pod_created" metric to get the answer to your question. It might be possible with the metrics-server + Prometheus, but I think it would not count some pods that live less than one scrape interval. Source: over 2 years ago
This is what we use. https://github.com/kubernetes/kube-state-metrics. Source: over 2 years ago
Not familiar with Adot-Collector, but if it's prometheus compatible, you just need to get it to scrape kube-state-metrics. Source: over 2 years ago
When you install Prometheus using the prometheus-operator/kube-prometheus-stack, it usually comes with kube-state-metrics, which is where the metrics you are looking for usually come from. How did you install Prometheus? If you use the prometheus-operator/kube-prometheus-stack helm chart, you probably just need to check your values.yaml overlay to see if you have enabled kubeStateMetrics: true. Source: over 2 years ago
Probably the best way to solve what you’re asking for is deploying kube-state metricskube-state metrics and using GMP following the self-deployed docs. Keep in mind that after the free tier, these metrics are billable. Source: over 2 years ago
Do you know an article comparing Kube-state-metrics to other products?
Suggest a link to a post with product alternatives.
This is an informative page about Kube-state-metrics. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.