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

# Kubernetes state_service metricset
The `state_service` metricset for kubernetes service 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/3007/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.service",
        "duration": 115000,
        "module": "kubernetes"
    },
    "kubernetes": {
        "namespace": "kube-system",
        "service": {
            "cluster_ip": "10.96.0.10",
            "created": "2025-04-07T14:36:29.000Z",
            "name": "kube-dns",
            "type": "ClusterIP"
        }
    },
    "metricset": {
        "name": "state_service",
        "period": 10000
    },
    "service": {
        "address": "127.0.0.1:55555",
        "type": "kubernetes"
    }
}
```