﻿---
title: Kubernetes state_storageclass metricset
description: The state_storageclass metricset for kubernetes storage class related metrics from kube-state-metrics. For a description of each field in the metricset,...
url: https://www.elastic.co/elastic/docs-builder/docs/2967/reference/beats/metricbeat/metricbeat-metricset-kubernetes-state_storageclass
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Kubernetes state_storageclass metricset
The `state_storageclass` metricset for kubernetes storage class related metrics from `kube-state-metrics`.

## Fields

For a description of each field in the metricset, see the [exported fields](https://www.elastic.co/elastic/docs-builder/docs/2967/reference/beats/metricbeat/exported-fields-kubernetes) section.
Here is an example document generated by this metricset:
```json
{
    "@timestamp": "2019-03-01T08:05:34.853Z",
    "event": {
        "dataset": "kubernetes.storageclass",
        "duration": 115000,
        "module": "kubernetes"
    },
    "kubernetes": {
        "storageclass": {
            "created": "2025-04-07T14:36:30.000Z",
            "name": "standard",
            "provisioner": "rancher.io/local-path",
            "reclaim_policy": "Delete",
            "volume_binding_mode": "WaitForFirstConsumer"
        }
    },
    "metricset": {
        "name": "state_storageclass",
        "period": 10000
    },
    "service": {
        "address": "127.0.0.1:55555",
        "type": "kubernetes"
    }
}
```