IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Kubernetes state_cronjob metricset
editKubernetes state_cronjob metricset
editThis is the state_cronjob
metricset of the Kubernetes module.
This metricset adds metadata by default only for versions of k8s >= v1.21.
For older versions the APIs are not compatible and one need to configure the
metricset with add_metadata: false
and remove the proper apiGroup
in the ClusterRole
:
- apiGroups: [ "batch" ] resources: - cronjobs
For a description of each field in the metricset, see the exported fields section.
Here is an example document generated by this metricset:
{ "@timestamp": "2019-03-01T08:05:34.853Z", "event": { "dataset": "kubernetes.cronjob", "duration": 115000, "module": "kubernetes" }, "kubernetes": { "cronjob": { "active": { "count": 0 }, "created": { "sec": 1673949613 }, "is_suspended": false, "last_schedule": { "sec": 1674035220 }, "name": "hello-cronjob", "next_schedule": { "sec": 1674035280 } }, "namespace": "kube-system" }, "metricset": { "name": "state_cronjob", "period": 10000 }, "service": { "address": "127.0.0.1:55555", "type": "kubernetes" } }