﻿---
title: Kubernetes state_job metricset
description: This is the state_job metricset of the module kubernetes. For a description of each field in the metricset, see the exported fields section. Here is an...
url: https://www.elastic.co/elastic/docs-builder/docs/2763/reference/beats/metricbeat/metricbeat-metricset-kubernetes-state_job
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Kubernetes state_job metricset
This is the state_job metricset of the module kubernetes.

## Fields

For a description of each field in the metricset, see the [exported fields](https://www.elastic.co/elastic/docs-builder/docs/2763/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.job",
        "duration": 115000,
        "module": "kubernetes"
    },
    "kubernetes": {
        "job": {
            "completions": {
                "desired": 1
            },
            "name": "hello-29068597",
            "owner": {
                "is_controller": "true",
                "kind": "CronJob",
                "name": "hello"
            },
            "parallelism": {
                "desired": 1
            },
            "pods": {
                "active": 0,
                "failed": 0,
                "succeeded": 1
            },
            "status": {
                "complete": "true"
            },
            "time": {
                "completed": "2025-04-08T12:37:03.000Z",
                "created": "2025-04-08T12:37:00.000Z"
            }
        },
        "namespace": "default"
    },
    "metricset": {
        "name": "state_job",
        "period": 10000
    },
    "service": {
        "address": "127.0.0.1:55555",
        "type": "kubernetes"
    }
}
```