forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Metricbeat] K8s apiserver metricset to new data generation (elastic#…
…11113) This moves the kubernetes/apiserver to the new testing methodology. I kept the old tests around for now but they should be removed as soon as we agree the output of this change is as we expected.
- Loading branch information
Showing
8 changed files
with
24,926 additions
and
29 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"@timestamp": "2019-03-01T08:05:34.853Z", | ||
"event": { | ||
"dataset": "kubernetes.apiserver", | ||
"duration": 115000, | ||
"module": "kubernetes" | ||
}, | ||
"kubernetes": { | ||
"apiserver": { | ||
"request": { | ||
"client": "kubectl/v1.6.1 (linux/amd64) kubernetes/b0b7a32", | ||
"count": 4, | ||
"resource": "configmaps", | ||
"scope": "namespace", | ||
"verb": "DELETE" | ||
} | ||
} | ||
}, | ||
"metricset": { | ||
"name": "apiserver" | ||
}, | ||
"service": { | ||
"address": "127.0.0.1:55555", | ||
"type": "kubernetes" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
metricbeat/module/kubernetes/apiserver/_meta/testdata/config.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,3 @@ | ||
type: http | ||
url: "/metrics" | ||
suffix: plain |
6,706 changes: 6,706 additions & 0 deletions
6,706
metricbeat/module/kubernetes/apiserver/_meta/testdata/docs.plain
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.