---
title: Kubernetes state_horizontalpodautoscaler metricset
description: This is the state_horizontalpodautoscaler metricset of the Kubernetes module. For a description of each field in the metricset, see the exported fields...
url: https://www.elastic.co/elastic/docs-builder/docs/2472/reference/beats/metricbeat/metricbeat-metricset-kubernetes-state_horizontalpodautoscaler
applies_to:
  - Elastic Stack: Beta in 9.0+
---

# Kubernetes state_horizontalpodautoscaler metricset
This is the `state_horizontalpodautoscaler` metricset of the Kubernetes module.

## Fields

For a description of each field in the metricset, see the [exported fields](https://www.elastic.co/elastic/docs-builder/docs/2472/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.horizontalpodautoscaler",
        "duration": 115000,
        "module": "kubernetes"
    },
    "kubernetes": {
        "horizontalpodautoscaler": {
            "name": "cpu",
            "replicas": {
                "current": 1,
                "desired": 0,
                "max": 2,
                "min": 1
            },
            "status": {
                "condition": "scalingactive"
            }
        },
        "namespace": "default"
    },
    "metricset": {
        "name": "state_horizontalpodautoscaler",
        "period": 10000
    },
    "service": {
        "address": "127.0.0.1:55555",
        "type": "kubernetes"
    }
}
```