---
title: Charmhub | Deploy kube-state-metrics using Charmhub - The Open Operator Collection
description: Deploy the latest version of kube-state-metrics as a Kubernetes Operator
  on any cloud.
url: https://charmhub.io/kube-state-metrics/configurations
---

# kube-state-metrics

[Canonical Kubernetes](https://charmhub.io/publisher/containers "View all packages from Canonical Kubernetes")

* [Canonical Kubernetes](https://charmhub.io/publisher/containers "View all packages from Canonical Kubernetes")

Platform:

stable a44adeb

```
juju deploy kube-state-metrics
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [metric-allowlist](https://charmhub.io/kube-state-metrics/configurations#metric-allowlist)
* [metric-denylist](https://charmhub.io/kube-state-metrics/configurations#metric-denylist)
* [metric-labels-allowlist](https://charmhub.io/kube-state-metrics/configurations#metric-labels-allowlist)
* [namespaces](https://charmhub.io/kube-state-metrics/configurations#namespaces)
* [resources](https://charmhub.io/kube-state-metrics/configurations#resources)
* [scrape-interval](https://charmhub.io/kube-state-metrics/configurations#scrape-interval)

[Learn about configurations >](https://juju.is/docs/juju/configuration#heading--application-configuration)

* metric-allowlist | string

  Comma-separated list of metrics to be exposed. This list comprises of
  exact metric names and/or regex patterns. The allowlist and denylist are
  mutually exclusive.
* metric-denylist | string

  Comma-separated list of metrics not to be enabled. This list comprises of
  exact metric names and/or regex patterns. The allowlist and denylist are
  mutually exclusive.
* metric-labels-allowlist | string

  Comma-separated list of additional Kubernetes label keys that will be
  used in the resource' labels metric. By default the metric contains only
  name and namespace labels. To include additional labels provide a list of
  resource names in their plural form and Kubernetes label keys you would
  like to allow for them (e.g., '=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...').
  A single '*' can be provided per resource instead to allow any labels,
  but that has severe performance implications (e.g., '=pods=[*]').
* namespaces | string

  Comma-separated list of namespaces to limit monitoring to.
* resources | string

  Comma-separated list of Resources to override the default set of Resources to monitor.
* scrape-interval | string

  Default: 1m

  Prometheus configuration for scrape interval of this charm.
