Skip to content

Commit

Permalink
[Kubernetes] Add tests for kube-state-metrics v2.12 (#39160)
Browse files Browse the repository at this point in the history
* add tests for kube-state-metrics v2.12

Signed-off-by: Tetiana Kravchenko <[email protected]>

* remove ksm 2.8.2 and 2.9.2; add k8s 2.11.0; rerun test to generate expected test results

Signed-off-by: Tetiana Kravchenko <[email protected]>

---------

Signed-off-by: Tetiana Kravchenko <[email protected]>
  • Loading branch information
tetianakravchenko authored Apr 24, 2024
1 parent 8f9916a commit 079395b
Show file tree
Hide file tree
Showing 93 changed files with 6,932 additions and 5,123 deletions.
1,659 changes: 918 additions & 741 deletions metricbeat/module/kubernetes/_meta/test/KSM/docs.plain

Large diffs are not rendered by default.

1,476 changes: 1,476 additions & 0 deletions metricbeat/module/kubernetes/_meta/test/KSM/ksm.v2.11.0.plain

Large diffs are not rendered by default.

1,470 changes: 1,470 additions & 0 deletions metricbeat/module/kubernetes/_meta/test/KSM/ksm.v2.12.0.plain

Large diffs are not rendered by default.

1,477 changes: 0 additions & 1,477 deletions metricbeat/module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain

This file was deleted.

1,479 changes: 0 additions & 1,479 deletions metricbeat/module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain

This file was deleted.

27 changes: 9 additions & 18 deletions metricbeat/module/kubernetes/state_container/_meta/data.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"@timestamp": "2019-03-01T08:05:34.853Z",
"container": {
"id": "eb97eb439a6c71ec0d24241d23c87b019776e770d09a3026a518b6910275ed5d",
"id": "054b424625a7c22c210e3fe0aae55069d4f3e18ce8bc802a9a96ce87bb7a2483",
"image": {
"name": "registry.k8s.io/etcd:3.5.7-0"
"name": "docker.io/library/busybox:latest"
},
"runtime": "containerd"
},
Expand All @@ -14,30 +14,21 @@
},
"kubernetes": {
"container": {
"cpu": {
"request": {
"cores": 0.1
}
},
"id": "eb97eb439a6c71ec0d24241d23c87b019776e770d09a3026a518b6910275ed5d",
"memory": {
"request": {
"bytes": 104857600
}
},
"name": "etcd",
"id": "054b424625a7c22c210e3fe0aae55069d4f3e18ce8bc802a9a96ce87bb7a2483",
"name": "hello",
"status": {
"phase": "running",
"ready": true,
"phase": "terminated",
"ready": false,
"reason": "Completed",
"restarts": 0
}
},
"namespace": "kube-system",
"namespace": "default",
"node": {
"name": "kind-control-plane"
},
"pod": {
"name": "etcd-kind-control-plane"
"name": "hello-28564555-zdfjz"
}
},
"metricset": {
Expand Down
Loading

0 comments on commit 079395b

Please sign in to comment.