Collect metrics from Kubernetes Proxy server with Elastic Agent.
What is an Elastic integration?
This integration is powered by Elastic Agent. Elastic Agent is a single, unified way to add monitoring for logs, metrics, and other types of data to a host. It can also protect hosts from security threats, query data from operating systems, forward data from remote services or hardware, and more. Refer to our documentation for a detailed comparison between Beats and Elastic Agent.
Prefer to use Beats for this use case? See Filebeat modules for logs or Metricbeat modules for metrics.
See the integrations quick start guides to get started:
This is the proxy
dataset of the Kubernetes package. It collects metrics
from Kubernetes Proxy component.
An example event for proxy
looks as following:
{
"kubernetes": {
"proxy": {
"process": {
"memory": {
"virtual": {
"bytes": 773107712
},
"resident": {
"bytes": 42229760
}
},
"fds": {
"max": {
"count": 1048576
},
"open": {
"count": 16
}
},
"cpu": {
"sec": 0
},
"started": {
"sec": 1673362810.64
}
},
"sync": {
"rules": {
"duration": {
"us": {
"bucket": {
"1000": 0,
"2000": 0,
"4000": 0,
"8000": 0,
"16000": 0,
"32000": 0,
"64000": 3,
"128000": 3,
"256000": 4,
"512000": 4,
"1024000": 4,
"2048000": 4,
"4096000": 4,
"8192000": 4,
"16384000": 4,
"+Inf": 4
},
"count": 4,
"sum": 353392.43200000003
}
}
},
"networkprogramming": {
"duration": {
"us": {
"bucket": {
"0": 0,
"250000": 0,
"500000": 0,
"1000000": 0,
"2000000": 0,
"3000000": 0,
"4000000": 0,
"5000000": 0,
"6000000": 0,
"7000000": 0,
"8000000": 0,
"9000000": 0,
"10000000": 0,
"11000000": 0,
"12000000": 0,
"13000000": 0,
"14000000": 0,
"15000000": 0,
"16000000": 0,
"17000000": 0,
"18000000": 0,
"19000000": 0,
"20000000": 0,
"21000000": 0,
"22000000": 0,
"23000000": 0,
"24000000": 0,
"25000000": 0,
"26000000": 0,
"27000000": 0,
"28000000": 0,
"29000000": 0,
"30000000": 0,
"31000000": 0,
"32000000": 0,
"33000000": 0,
"34000000": 0,
"35000000": 0,
"36000000": 0,
"37000000": 0,
"38000000": 0,
"39000000": 0,
"40000000": 0,
"41000000": 0,
"42000000": 0,
"43000000": 0,
"44000000": 0,
"45000000": 0,
"46000000": 0,
"47000000": 0,
"48000000": 0,
"49000000": 0,
"50000000": 0,
"51000000": 0,
"52000000": 0,
"53000000": 0,
"54000000": 0,
"55000000": 0,
"56000000": 0,
"57000000": 0,
"58000000": 0,
"59000000": 0,
"60000000": 0,
"65000000": 0,
"70000000": 0,
"75000000": 0,
"80000000": 0,
"85000000": 0,
"90000000": 0,
"95000000": 0,
"100000000": 0,
"105000000": 0,
"110000000": 0,
"115000000": 0,
"120000000": 0,
"150000000": 0,
"180000000": 0,
"210000000": 0,
"240000000": 0,
"270000000": 0,
"300000000": 0,
"+Inf": 0
},
"count": 0,
"sum": 0
}
}
}
}
}
},
"orchestrator": {
"cluster": {
"name": "kind",
"url": "kind-control-plane:6443"
}
},
"agent": {
"name": "kind-control-plane",
"id": "ee1d778a-e607-4c29-b152-f6e83e606966",
"type": "metricbeat",
"ephemeral_id": "084bb5dd-df70-4127-9a52-47fae69de446",
"version": "8.7.0"
},
"@timestamp": "2023-01-10T15:12:38.884Z",
"ecs": {
"version": "8.0.0"
},
"data_stream": {
"namespace": "default",
"type": "metrics",
"dataset": "kubernetes.proxy"
},
"service": {
"address": "http://localhost:10249/metrics",
"type": "kubernetes"
},
"host": {
"hostname": "kind-control-plane",
"os": {
"kernel": "5.15.49-linuxkit",
"codename": "focal",
"name": "Ubuntu",
"family": "debian",
"type": "linux",
"version": "20.04.5 LTS (Focal Fossa)",
"platform": "ubuntu"
},
"containerized": false,
"ip": [
"10.244.0.1",
"10.244.0.1",
"10.244.0.1",
"172.20.0.2",
"172.18.0.2",
"fc00:f853:ccd:e793::2",
"fe80::42:acff:fe12:2"
],
"name": "kind-control-plane",
"id": "1c1d736687984c73b6a5f77c1464d4da",
"mac": [
"02-42-AC-12-00-02",
"02-42-AC-14-00-02",
"6E-87-97-B3-C4-A1",
"7E-2B-73-DA-CF-B7",
"F2-54-31-F4-76-AB"
],
"architecture": "x86_64"
},
"elastic_agent": {
"id": "ee1d778a-e607-4c29-b152-f6e83e606966",
"version": "8.7.0",
"snapshot": true
},
"metricset": {
"period": 10000,
"name": "proxy"
},
"event": {
"duration": 7214755,
"agent_id_status": "verified",
"ingested": "2023-01-10T15:12:39Z",
"module": "kubernetes",
"dataset": "kubernetes.proxy"
}
}
Exported fields
Field | Description | Type | Unit | Metric Type |
---|---|---|---|---|
@timestamp | Event timestamp. | date | ||
cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | ||
cloud.availability_zone | Availability zone in which this host is running. | keyword | ||
cloud.image.id | Image ID for the cloud instance. | keyword | ||
cloud.instance.id | Instance ID of the host machine. | keyword | ||
cloud.instance.name | Instance name of the host machine. | keyword | ||
cloud.machine.type | Machine type of the host machine. | keyword | ||
cloud.project.id | Name of the project in Google Cloud. | keyword | ||
cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | ||
cloud.region | Region in which this host is running. | keyword | ||
container.id | Unique container id. | keyword | ||
container.image.name | Name of the image the container was built on. | keyword | ||
container.labels | Image labels. | object | ||
container.name | Container name. | keyword | ||
data_stream.dataset | Data stream dataset. | constant_keyword | ||
data_stream.namespace | Data stream namespace. | constant_keyword | ||
data_stream.type | Data stream type. | constant_keyword | ||
ecs.version | ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | ||
host.architecture | Operating system architecture. | keyword | ||
host.containerized | If the host is a container. | boolean | ||
host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword | ||
host.hostname | Hostname of the host. It normally contains what the hostname command returns on the host machine. | keyword | ||
host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of beat.name . | keyword | ||
host.ip | Host ip addresses. | ip | ||
host.mac | Host mac addresses. | keyword | ||
host.name | Name of the host. It can contain what hostname returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | ||
host.os.build | OS build information. | keyword | ||
host.os.codename | OS codename, if any. | keyword | ||
host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | ||
host.os.kernel | Operating system kernel version as a raw string. | keyword | ||
host.os.name | Operating system name, without the version. | keyword | ||
host.os.name.text | Multi-field of host.os.name . | text | ||
host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | ||
host.os.version | Operating system version as a raw string. | keyword | ||
host.type | Type of host. For Cloud providers this can be the machine type like t2.medium . If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | ||
kubernetes.proxy.client.request.count | Number of HTTP requests to API server, broken down by status code, method and host | long | counter | |
kubernetes.proxy.client.request.duration.us.bucket.* | Requests latency distribution in histogram buckets, broken down by verb and host | object | ||
kubernetes.proxy.client.request.duration.us.count | Number of request duration operations to API server, broken down by verb and host | long | counter | |
kubernetes.proxy.client.request.duration.us.sum | Sum of requests latency in microseconds, broken down by verb and host | long | micros | counter |
kubernetes.proxy.client.request.size.bytes.bucket.* | Requests size distribution in histogram buckets, broken down by verb and host | object | ||
kubernetes.proxy.client.request.size.bytes.count | Number of requests, broken down by verb and host | long | counter | |
kubernetes.proxy.client.request.size.bytes.sum | Requests size sum in bytes, broken down by verb and host | long | byte | counter |
kubernetes.proxy.client.response.size.bytes.bucket.* | Responses size distribution in histogram buckets, broken down by verb and host | object | ||
kubernetes.proxy.client.response.size.bytes.count | Number of responses, broken down by verb and host | long | counter | |
kubernetes.proxy.client.response.size.bytes.sum | Responses size sum in bytes, broken down by verb and host | long | byte | counter |
kubernetes.proxy.code | HTTP code | keyword | ||
kubernetes.proxy.host | HTTP host | keyword | ||
kubernetes.proxy.method | HTTP method | keyword | ||
kubernetes.proxy.process.cpu.sec | Total user and system CPU time spent in seconds | double | counter | |
kubernetes.proxy.process.fds.max.count | Limit for open file descriptors | long | gauge | |
kubernetes.proxy.process.fds.open.count | Number of open file descriptors | long | gauge | |
kubernetes.proxy.process.memory.resident.bytes | Bytes in resident memory | long | byte | gauge |
kubernetes.proxy.process.memory.virtual.bytes | Bytes in virtual memory | long | byte | gauge |
kubernetes.proxy.process.started.sec | Start time of the process since unix epoch in seconds | double | gauge | |
kubernetes.proxy.sync.networkprogramming.duration.us.bucket.* | Network programming latency distribution in histogram buckets | object | ||
kubernetes.proxy.sync.networkprogramming.duration.us.count | Number of network programming latency operations | long | counter | |
kubernetes.proxy.sync.networkprogramming.duration.us.sum | Sum of network programming latency in microseconds | long | counter | |
kubernetes.proxy.sync.rules.duration.us.bucket.* | SyncProxyRules latency distribution in histogram buckets | object | ||
kubernetes.proxy.sync.rules.duration.us.count | Number of SyncProxyRules latency operations | long | counter | |
kubernetes.proxy.sync.rules.duration.us.sum | SyncProxyRules latency sum in microseconds | long | counter | |
kubernetes.proxy.verb | HTTP verb | keyword | ||
orchestrator.cluster.name | Name of the cluster. | keyword | ||
orchestrator.cluster.url | URL of the API used to manage the cluster. | keyword | ||
service.address | Address where data about this service was collected from. This should be a URI, network address (ipv4:port or [ipv6]:port) or a resource path (sockets). | keyword | ||
service.type | The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch . | keyword |
Version | Details |
---|---|
1.35.0 | Enhancement View pull request Add NetworkUnavailable condition to state node |
1.34.1 | Enhancement View pull request Add support for TSDB on all metric data streams except the state ones |
1.34.0 | Enhancement View pull request Add support for TSDB on all state metric data streams |
1.33.0 | Enhancement View pull request Add data_stream.dataset setting and custom yaml input. |
1.32.2 | Enhancement View pull request Added link to docs for condition filter |
1.32.1 | Enhancement View pull request Added categories and/or subcategories. |
1.32.0 | Enhancement View pull request Add documentation for how to install alerts |
1.31.2 | Enhancement View pull request Add system testing for state service datastream |
1.31.1 | Enhancement View pull request Update controller manager, proxy and scheduler metrics and dashboards |
1.31.0 | Enhancement View pull request Use datas_tream.dataset as pre filters for dashboards and remove tags |
1.30.0 | Enhancement View pull request Add missing namespace_uid and namespace_labels fields |
1.29.2 | Bug fix View pull request Fix function for memory node usage |
1.29.1 | Bug fix View pull request Fix removed condition setting for container_logs |
1.29.0 | Bug fix View pull request Remove "Control Plane" column from Node Information table |
1.28.2 | Bug fix View pull request Fix Pod Memory usage panel title |
1.28.1 | Enhancement View pull request Delete statefulset, job and cronjob visualizations from Cluster Overview dashboard |
1.28.0 | Enhancement View pull request Adding banner for Kube-state metrics |
1.27.1 | Enhancement View pull request Fix typo in cluster overview dashboard |
1.27.0 | Enhancement View pull request New cluster overview dashboard |
1.26.0 | Enhancement View pull request Add processors configuration option for Kubernetes data_streams |
1.25.0 | Enhancement View pull request Add condition configuration option to container logs data stream |
1.24.0 | Enhancement View pull request Add fields to audit logs data stream |
1.23.1 | Enhancement View pull request Add missing dimension fields |
1.23.0 | Enhancement View pull request Add fields to audit logs data stream |
1.22.1 | Enhancement View pull request Fix overlapping fields in state_job data stream |
1.22.0 | Enhancement View pull request Update apiserver and controllermanaged deprecated fields and dashboards |
1.21.2 | Bug fix View pull request add container ID and pod name as part of Kubernetes Cotainer Logs filestream input |
1.21.1 | Enhancement View pull request improved the wording of the link to Kubernetes documentation |
1.21.0 | Enhancement View pull request Add new dashboards |
1.20.0 | Enhancement View pull request Change fields type for audit_logs data_stream to use requestObject and responseObject fields of audit events. Disable dynamic mapping for audit_logs data_stream. Drop kubernetes.audit.responseObject.metadata and kubernetes.audit.requestObject.metadata |
1.19.1 | Enhancement View pull request Add documentation for volume field |
1.19.0 | Enhancement View pull request Add missed ecs fields |
1.18.1 | Enhancement View pull request Add documentation for multi-fields |
1.18.0 | Enhancement View pull request Fix k8s overview dashboard |
1.17.3 | Bug fix View pull request Remove incorrectly tagged boolean dimension |
1.17.2 | Bug fix View pull request Add missing metadata fields |
1.17.1 | Enhancement View pull request Improve default ndjson parser configuration |
1.17.0 | Enhancement View pull request Disable audit logs collection by default |
1.16.0 | Enhancement View pull request Documentation improvements |
1.15.0 | Enhancement View pull request Add ssl.certificate_authorities configuration |
1.14.3 | Bug fix View pull request Add missing job.name and cronjob.name fields to state_container datastream |
1.14.2 | Bug fix View pull request Add missing job.name and cronjob.name fields to container related datastreams |
1.14.1 | Bug fix View pull request Add missing job.name and cronjob.name fields added by metadata generators |
1.14.0 | Enhancement View pull request Tune state_metrics settings |
1.13.0 | Enhancement View pull request Update to ECS 8.0 |
1.12.0 | Enhancement View pull request Expose add_recourse_metadata configuration option |
1.11.0 | Enhancement View pull request Add memory.working_set.limit.pct for pod and container data streams |
1.10.0 | Enhancement View pull request Add leader election in state_job data stream |
1.9.0 | Enhancement View pull request Add missing fields |
1.8.1 | Bug fix View pull request Set kubernetes.volume.fs.used.pct to scaled_float |
1.8.0 | Enhancement View pull request Support json logs parsing |
1.7.0 | Enhancement View pull request Add new audit logs data stream in kubernetes integration |
1.6.0 | Enhancement View pull request Add skip_older option for event datastream |
1.5.0 | Enhancement View pull request Revert Kubernetes namespace field breaking change |
1.4.2 | Enhancement View pull request Add dimension fields |
1.4.1 | Enhancement View pull request Remove overriding of index pattern on the Kubernetes overview dashboard |
1.4.0 | Enhancement View pull request Use filestream input for container_logs data stream |
1.3.3 | Bug fix View pull request Fix conditions of data_streams that are based on k8s labels & add condition in pipelines |
1.3.2 | Enhancement View pull request Set default host for proxy to localhost |
1.3.1 | Enhancement View pull request Uniform with guidelines |
1.3.0 | Enhancement View pull request Add container_logs ecs fields |
1.2.1 | Bug fix View pull request Update Kubernetes cluster_ip field type |
1.2.0 | Enhancement View pull request Update Kubernetes namespace field |
1.1.1 | Bug fix View pull request Update Kubernetes integration Readme |
1.1.0 | Enhancement View pull request Update to ECS 1.12.0 |
1.0.0 | Enhancement View pull request Release Kubernetes as GA |
0.14.1 | Enhancement View pull request Update default host in kubernetes proxy data stream in kubernetes integration |
0.14.0 | Enhancement View pull request Add new container logs data stream in kubernetes integration |
0.13.0 | Enhancement View pull request Leverage dynamic kubernetes provider for controller and scheduler datastream |
0.12.2 | Bug fix View pull request Add missing field "kubernetes.daemonset.name" field for pod and container data streams |
0.12.1 | Bug fix View pull request Add missing cluster filter for "orchestrator.cluster.name" field in [Metrics Kubernetes] Overview dashboard and Dashboard section in the integration overview page |
0.12.0 | Enhancement View pull request Update kubernetes package ecs fields with orchestrator.cluster.url and orchestrator.cluster.name |
0.11.1 | Enhancement View pull request Escape special characters in docs |
0.11.0 | Enhancement View pull request Update documentation to fit mdx spec |
0.10.0 | Enhancement View pull request Update integration description |
0.9.1 | Bug fix View pull request Add missing field "kubernetes.daemonset.name" field for state_pod and state_container |
0.9.0 | Enhancement View pull request Enhance kubernetes package with state_job data stream |
0.8.0 | Enhancement View pull request Leverage leader election in kubernetes integration |
0.7.0 | Enhancement View pull request Add _meta information to Kubernetes fields |
0.6.0 | Enhancement View pull request Introduce kubernetes package granularity using input_groups |
0.5.3 | Enhancement View pull request Add missing field "kubernetes.statefulset.replicas.ready" |
0.5.2 | Bug fix View pull request Fix stack compatability |
0.5.1 | Bug fix View pull request Fix references to env variables |
0.5.0 | Enhancement View pull request Add missing field "kubernetes.selectors.*" and extra https settings for controllermanager and scheduler datastreams |
0.4.5 | Enhancement View pull request Add missing field "kubernetes.pod.ip" |
0.4.4 | Enhancement View pull request Updating package owner |
0.4.3 | Bug fix View pull request Correct sample event file. |
0.4.2 | Bug fix View pull request Change kibana.version constraint to be more conservative. |
0.4.1 | Enhancement View pull request Add missing fields |
0.1.0 | Enhancement View pull request initial release |