forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kubernetes state_daemonset metricset for Metricbeat
Implements state_daemonset for the Metricbeat Kubernetes module, in the model of state_deployment, state_replicaset etc. Closes: elastic#17010
- Loading branch information
Showing
20 changed files
with
1,831 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
metricbeat/module/kubernetes/state_daemonset/_meta/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"@timestamp": "2019-03-01T08:05:34.853Z", | ||
"event": { | ||
"dataset": "kubernetes.daemonset", | ||
"duration": 115000, | ||
"module": "kubernetes" | ||
}, | ||
"kubernetes": { | ||
"daemonset": { | ||
"name": "kube-proxy", | ||
"replicas": { | ||
"available": 1, | ||
"desired": 1, | ||
"ready": 1, | ||
"unavailable": 0 | ||
} | ||
}, | ||
"namespace": "kube-system" | ||
}, | ||
"metricset": { | ||
"name": "state_daemonset", | ||
"period": 10000 | ||
}, | ||
"service": { | ||
"address": "127.0.0.1:55555", | ||
"type": "kubernetes" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
metricbeat/module/kubernetes/state_daemonset/_meta/docs.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is the `state_daemonset` metricset of the Kubernetes module. |
29 changes: 29 additions & 0 deletions
29
metricbeat/module/kubernetes/state_daemonset/_meta/fields.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
- name: daemonset | ||
type: group | ||
description: > | ||
Kubernetes DaemonSet metrics | ||
release: experimental | ||
fields: | ||
- name: name | ||
type: keyword | ||
- name: replicas | ||
type: group | ||
description: > | ||
Kubernetes DaemonSet replica metrics | ||
fields: | ||
- name: available | ||
type: long | ||
description: > | ||
The number of available replicas per DaemonSet | ||
- name: desired | ||
type: long | ||
description: > | ||
The desired number of replicas per DaemonSet | ||
- name: ready | ||
type: long | ||
description: > | ||
The number of ready replicas per DaemonSet | ||
- name: unavailable | ||
type: long | ||
description: > | ||
The number of unavailable replicas per DaemonSet |
27 changes: 27 additions & 0 deletions
27
metricbeat/module/kubernetes/state_daemonset/_meta/test/ksm.v1.3.0.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[ | ||
{ | ||
"RootFields": null, | ||
"ModuleFields": { | ||
"namespace": "kube-system" | ||
}, | ||
"MetricSetFields": { | ||
"name": "kube-proxy", | ||
"replicas": { | ||
"available": 1, | ||
"desired": 1, | ||
"ready": 1, | ||
"unavailable": 0 | ||
} | ||
}, | ||
"Index": "", | ||
"ID": "", | ||
"Namespace": "kubernetes.daemonset", | ||
"Timestamp": "0001-01-01T00:00:00Z", | ||
"Error": null, | ||
"Host": "", | ||
"Service": "", | ||
"Took": 0, | ||
"Period": 0, | ||
"DisableTimeSeries": false | ||
} | ||
] |
Oops, something went wrong.