[O11y][Kubernetes] Rally benchmark kubernetes.event#9161
[O11y][Kubernetes] Rally benchmark kubernetes.event#9161ali786XI merged 6 commits intoelastic:mainfrom
kubernetes.event#9161Conversation
🚀 Benchmarks reportTo see the full report comment with |
gizas
left a comment
There was a problem hiding this comment.
Only major thing that I spotted is the data_stream is missing
"data_stream": {
"namespace": "default",
"type": "metrics",
"dataset": "kubernetes.event"
}You can also add the kubectl_kubernetes_io/last-applied-configuration annotation
Adding here the sample event I created for test
event.json.txt
| "module": "kubernetes" | ||
| }, | ||
| "data_stream": { | ||
| "namespace": "ep", |
There was a problem hiding this comment.
| "namespace": "ep", | |
| "namespace": "default", |
Was done on purpose?
There was a problem hiding this comment.
Oh forgot to mention this. Actually keeping the namepsace as default results in this error while streaming the metrics
field [data_stream.namespace] only accepts values that are equal to the value defined in the mappings [ep], but got [default]"}}}}. So changed it to ep
… into kubernetes_benchmark_event
💚 Build Succeeded
History
cc @aliabbas-elastic |
|



Proposed commit message
eventdata stream ofKubernetesSample Response
sample_event.json
{ "kubernetes": { "event": { "reason": "NodeHasSufficientMemory", "metadata": { "uid": "host-48", "generate_name": "treerazor", "name": "host-48", "namespace": "demo-48", "annotations": { "kubectl_kubernetes_io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"involvedObject\":{\"kind\":\"Pod\"},\"kind\":\"Event\",\"message\":\"Node minikube status is now: NodeHasSufficientMemory\",\"metadata\":{\"annotations\":{},\"name\":\"host-48\",\"namespace\":\"demo-48\"},\"type\":\"Normal\"}\n" }, "self_link": "/api/v1/namespaces/events/host-48", "resource_version": "481307", "timestamp": { "created": "2024-02-22T08:32:43.416+05:30" } }, "involved_object": { "uid": "host-48", "kind": "Pod", "name": "boldlizard", "api_version": "v1", "resource_version": "481307" }, "count": 4693, "source": { "component": "demo-component-48", "host": "host-48" }, "message": "Node minikube status is now: NodeHasSufficientMemory", "type": "Normal", "timestamp": { "first_occurrence": "2024-02-22T08:32:43.416+05:30", "last_occurrence": "2024-02-22T12:12:43.416+05:30" } } }, "agent": { "name": "kubernetes-scale-123456", "id": "de42127b-4db8-4471-824e-a7b14f478663", "ephemeral_id": "22ed892c-43bd-408a-9121-65e2f5b6a56e", "type": "metricbeat", "version": "8.8.0" }, "benchmark_metadata": { "info": { "run_id": "60d2bff6-ec81-4bd0-b83a-52ac8bd1e7e3", "benchmark": "event-benchmark" } }, "elastic_agent": { "id": "de42127b-4db8-4471-824e-a7b14f478663", "version": "8.8.0", "snapshot": true }, "orchestrator": { "cluster": { "name": "kubernetes-scale", "url": "https://22.110.111.190" } }, "@timestamp": "2024-02-22T12:32:43.416+05:30", "ecs": { "version": "8.5.0" }, "data_stream": { "namespace": "ep", "type": "metrics", "dataset": "kubernetes.event" }, "service": { "type": "kubernetes" }, "host": { "hostname": "kubernetes-scale-123456", "os": { "kernel": "5.10.47-linuxkit", "codename": "Core", "name": "CentOS Linux", "family": "redhat", "type": "linux", "version": "7 (Core)", "platform": "centos" }, "containerized": true, "name": "kubernetes-scale-123456", "id": "85e35c2b5e1b39ba72393a6baf6ee7cd", "architecture": "x86_64" }, "metricset": { "name": "event" }, "event": { "duration": 2288442, "agent_id_status": "auth_metadata_missing", "ingested": "2024-02-22T07:02:45Z", "module": "kubernetes", "dataset": "kubernetes.event" } }Checklist
How to test this PR locally
Run this command from package root
elastic-package benchmark rally --benchmark event-benchmark -velastic-package benchmark stream --benchmark event-benchmark -vRelated issues
Screenshots