- Metricbeat 参考文档其他版本
- Metricbeat 概述
- 快速入门:安装和配置
- 设置并运行
- 升级 Metricbeat
- Metricbeat 的工作原理
- 配置
- 模块
- 常规设置
- 项目路径
- 配置文件加载
- 输出
- Kerberos
- SSL
- 索引生命周期管理 (ILM)
- Elasticsearch 索引模板
- Kibana 端点
- Kibana 仪表板
- 处理器
- 定义处理器
- add_cloud_metadata
- add_cloudfoundry_metadata
- add_docker_metadata
- add_fields
- add_host_metadata
- add_id
- add_kubernetes_metadata
- add_labels
- add_locale
- add_network_direction
- add_nomad_metadata
- add_observer_metadata
- add_process_metadata
- add_tags
- append
- community_id
- convert
- copy_fields
- decode_base64_field
- decode_duration
- decode_json_fields
- decode_xml
- decode_xml_wineventlog
- decompress_gzip_field
- detect_mime_type
- dissect
- dns
- drop_event
- drop_fields
- extract_array
- fingerprint
- include_fields
- move_fields
- rate_limit
- registered_domain
- rename
- replace
- script
- syslog
- translate_ldap_attribute
- translate_sid
- truncate_fields
- urldecode
- 自动发现
- 内部队列
- 日志
- HTTP 端点
- 正则表达式支持
- 检测
- 功能标志
- metricbeat.reference.yml
- 操作指南
- 模块
- ActiveMQ 模块
- Aerospike 模块
- Airflow 模块
- Apache 模块
- AWS 模块
- AWS Fargate 模块
- Azure 模块
- Beat 模块
- Ceph 模块
- Cloudfoundry 模块
- CockroachDB 模块
- Consul 模块
- Containerd 模块
- Coredns 模块
- Couchbase 模块
- CouchDB 模块
- Docker 模块
- Dropwizard 模块
- Elasticsearch 模块
- Elasticsearch ccr 指标集
- Elasticsearch cluster_stats 指标集
- Elasticsearch enrich 指标集
- Elasticsearch index 指标集
- Elasticsearch index_recovery 指标集
- Elasticsearch index_summary 指标集
- Elasticsearch ingest_pipeline 指标集
- Elasticsearch ml_job 指标集
- Elasticsearch node 指标集
- Elasticsearch node_stats 指标集
- Elasticsearch pending_tasks 指标集
- Elasticsearch shard 指标集
- Enterprise Search 模块
- Envoyproxy 模块
- Etcd 模块
- Google Cloud Platform 模块
- Google Cloud Platform billing 指标集
- Google Cloud Platform carbon 指标集
- Google Cloud Platform compute 指标集
- Google Cloud Platform dataproc 指标集
- Google Cloud Platform firestore 指标集
- Google Cloud Platform gke 指标集
- Google Cloud Platform loadbalancing 指标集
- Google Cloud Platform metrics 指标集
- Google Cloud Platform pubsub 指标集
- Google Cloud Platform storage 指标集
- Golang 模块
- Graphite 模块
- HAProxy 模块
- HTTP 模块
- IBM MQ 模块
- IIS 模块
- Istio 模块
- Jolokia 模块
- Kafka 模块
- Kibana 模块
- Kubernetes 模块
- Kubernetes apiserver 指标集
- Kubernetes container 指标集
- Kubernetes controllermanager 指标集
- Kubernetes event 指标集
- Kubernetes node 指标集
- Kubernetes pod 指标集
- Kubernetes proxy 指标集
- Kubernetes scheduler 指标集
- Kubernetes state_container 指标集
- Kubernetes state_cronjob 指标集
- Kubernetes state_daemonset 指标集
- Kubernetes state_deployment 指标集
- Kubernetes state_job 指标集
- Kubernetes state_node 指标集
- Kubernetes state_persistentvolumeclaim 指标集
- Kubernetes state_pod 指标集
- Kubernetes state_replicaset 指标集
- Kubernetes state_resourcequota 指标集
- Kubernetes state_service 指标集
- Kubernetes state_statefulset 指标集
- Kubernetes state_storageclass 指标集
- Kubernetes system 指标集
- Kubernetes volume 指标集
- KVM 模块
- Linux 模块
- Logstash 模块
- Memcached 模块
- Cisco Meraki 模块
- MongoDB 模块
- MSSQL 模块
- Munin 模块
- MySQL 模块
- NATS 模块
- Nginx 模块
- Openmetrics 模块
- Oracle 模块
- Panw 模块
- PHP_FPM 模块
- PostgreSQL 模块
- Prometheus 模块
- RabbitMQ 模块
- Redis 模块
- Redis Enterprise 模块
- SQL 模块
- Stan 模块
- Statsd 模块
- SyncGateway 模块
- System 模块
- System core 指标集
- System cpu 指标集
- System diskio 指标集
- System entropy 指标集
- System filesystem 指标集
- System fsstat 指标集
- System load 指标集
- System memory 指标集
- System network 指标集
- System network_summary 指标集
- System process 指标集
- System process_summary 指标集
- System raid 指标集
- System service 指标集
- System socket 指标集
- System socket_summary 指标集
- System uptime 指标集
- System users 指标集
- Tomcat 模块
- Traefik 模块
- uWSGI 模块
- vSphere 模块
- Windows 模块
- ZooKeeper 模块
- 导出的字段
- ActiveMQ 字段
- Aerospike 字段
- Airflow 字段
- Apache 字段
- AWS 字段
- AWS Fargate 字段
- Azure 字段
- Beat 字段
- Beat 字段
- Ceph 字段
- 云提供商元数据字段
- Cloudfoundry 字段
- CockroachDB 字段
- 通用字段
- Consul 字段
- Containerd 字段
- Coredns 字段
- Couchbase 字段
- CouchDB 字段
- Docker 字段
- Docker 字段
- Dropwizard 字段
- ECS 字段
- Elasticsearch 字段
- Enterprise Search 字段
- Envoyproxy 字段
- Etcd 字段
- Google Cloud Platform 字段
- Golang 字段
- Graphite 字段
- HAProxy 字段
- 主机字段
- HTTP 字段
- IBM MQ 字段
- IIS 字段
- Istio 字段
- Jolokia 字段
- Jolokia Discovery 自动发现提供程序字段
- Kafka 字段
- Kibana 字段
- Kubernetes 字段
- Kubernetes 字段
- KVM 字段
- Linux 字段
- Logstash 字段
- Memcached 字段
- MongoDB 字段
- MSSQL 字段
- Munin 字段
- MySQL 字段
- NATS 字段
- Nginx 字段
- Openmetrics 字段
- Oracle 字段
- Panw 字段
- PHP_FPM 字段
- PostgreSQL 字段
- 进程字段
- Prometheus 字段
- Prometheus 类型指标字段
- RabbitMQ 字段
- Redis 字段
- Redis Enterprise 字段
- SQL 字段
- Stan 字段
- Statsd 字段
- SyncGateway 字段
- 系统字段
- Tomcat 字段
- Traefik 字段
- uWSGI 字段
- vSphere 字段
- Windows 字段
- ZooKeeper 字段
- 监控
- 安全
- 故障排除
- 获取帮助
- 调试
- 了解已记录的指标
- 常见问题
- FreeBSD 上出现“open /compat/linux/proc: no such file or directory”错误
- Metricbeat 为您未配置的接口收集系统指标
- Metricbeat 使用过多带宽
- 加载配置文件时出错
- 发现意外或未知字符
- Logstash 连接不起作用
- 发布到 Logstash 失败,并显示“connection reset by peer”消息
- @metadata 在 Logstash 中丢失
- 不确定是使用 Logstash 还是 Beats
- SSL 客户端无法连接到 Logstash
- 监控 UI 显示的 Beats 比预期的少
- 仪表板无法找到索引模式
- 由于 MADV 设置导致 RSS 内存使用量过高
- 为 Beats 做出贡献
Linux 内存指标集
编辑Linux 内存指标集
编辑此功能处于 Beta 阶段,可能会发生更改。其设计和代码不如官方 GA 功能成熟,按“原样”提供,不提供任何保证。Beta 功能不受官方 GA 功能的支持 SLA 约束。
内存指标集扩展了 system/memory,并添加了特定于 Linux 的内存指标,包括巨页(Huge Pages)和整体分页统计信息。
目前,此数据是 Metricbeat 上 system/memory 的一部分,但只能在 Fleet 中的 Linux 集成中找到。将来,此数据将从 system/memory 中删除。
这是一个默认指标集。如果主机模块未配置,则默认启用此指标集。
有关指标集中每个字段的描述,请参阅导出的字段部分。
以下是此指标集生成的示例文档
{ "@timestamp": "2017-10-12T08:05:34.853Z", "event": { "dataset": "linux.memory", "duration": 115000, "module": "linux" }, "linux": { "memory": { "hugepages": { "default_size": 2097152, "free": 0, "reserved": 0, "surplus": 0, "swap": { "out": { "fallback": 0, "pages": 0 } }, "total": 0, "used": { "bytes": 0, "pct": 0 } }, "page_stats": { "direct_efficiency": { "pct": 0.3419 }, "kswapd_efficiency": { "pct": 0.8922 }, "pgfree": { "pages": 16328309361 }, "pgscan_direct": { "pages": 21037589 }, "pgscan_kswapd": { "pages": 49831 }, "pgsteal_direct": { "pages": 7193725 }, "pgsteal_kswapd": { "pages": 44459 } }, "swap": { "free": 8586252288, "in": { "pages": 72435 }, "out": { "pages": 2032475 }, "readahead": { "cached": 5, "pages": 29 }, "total": 8589930496, "used": { "bytes": 3678208, "pct": 0.0004 } }, "vmstat": { "allocstall_dma": 0, "allocstall_dma32": 0, "allocstall_movable": 60572, "allocstall_normal": 1125, "balloon_deflate": 0, "balloon_inflate": 0, "balloon_migrate": 0, "cma_alloc_fail": 0, "cma_alloc_success": 0, "compact_daemon_free_scanned": 0, "compact_daemon_migrate_scanned": 0, "compact_daemon_wake": 2, "compact_fail": 0, "compact_free_scanned": 406096, "compact_isolated": 15241, "compact_migrate_scanned": 51056, "compact_stall": 0, "compact_success": 0, "direct_map_level2_splits": 864, "direct_map_level3_splits": 52, "drop_pagecache": 0, "drop_slab": 0, "htlb_buddy_alloc_fail": 0, "htlb_buddy_alloc_success": 0, "kswapd_high_wmark_hit_quickly": 0, "kswapd_inodesteal": 2, "kswapd_low_wmark_hit_quickly": 1, "nr_active_anon": 5553, "nr_active_file": 1478109, "nr_anon_pages": 1024369, "nr_anon_transparent_hugepages": 140, "nr_bounce": 0, "nr_dirtied": 87806596, "nr_dirty": 60, "nr_dirty_background_threshold": 1339484, "nr_dirty_threshold": 2682244, "nr_file_hugepages": 0, "nr_file_pages": 5302193, "nr_file_pmdmapped": 0, "nr_foll_pin_acquired": 2, "nr_foll_pin_released": 2, "nr_free_cma": 0, "nr_free_pages": 8219610, "nr_inactive_anon": 1046105, "nr_inactive_file": 3825289, "nr_isolated_anon": 0, "nr_isolated_file": 0, "nr_kernel_misc_reclaimable": 0, "nr_kernel_stack": 14144, "nr_mapped": 191441, "nr_mlock": 0, "nr_page_table_pages": 6756, "nr_shmem": 9446, "nr_shmem_hugepages": 0, "nr_shmem_pmdmapped": 0, "nr_slab_reclaimable": 362837, "nr_slab_unreclaimable": 167630, "nr_swapcached": 2, "nr_throttled_written": 0, "nr_unevictable": 768, "nr_unstable": 0, "nr_vmscan_immediate_reclaim": 10, "nr_vmscan_write": 2032594, "nr_writeback": 0, "nr_writeback_temp": 0, "nr_written": 77862049, "nr_zone_active_anon": 5553, "nr_zone_active_file": 1478109, "nr_zone_inactive_anon": 1046105, "nr_zone_inactive_file": 3825289, "nr_zone_unevictable": 768, "nr_zone_write_pending": 60, "nr_zspages": 477, "numa_foreign": 0, "numa_hint_faults": 0, "numa_hint_faults_local": 0, "numa_hit": 16320172649, "numa_huge_pte_updates": 0, "numa_interleave": 2819, "numa_local": 16319863485, "numa_miss": 0, "numa_other": 0, "numa_pages_migrated": 0, "numa_pte_updates": 0, "oom_kill": 0, "pageoutrun": 2, "pgactivate": 49439150, "pgalloc_dma": 1024, "pgalloc_dma32": 819165, "pgalloc_movable": 0, "pgalloc_normal": 16318820409, "pgdeactivate": 2560804, "pgdemote_direct": 0, "pgdemote_kswapd": 0, "pgfault": 19447993645, "pgfree": 16328309361, "pginodesteal": 677, "pglazyfree": 40011, "pglazyfreed": 4375, "pgmajfault": 112209, "pgmigrate_fail": 778, "pgmigrate_success": 7169, "pgpgin": 28240034, "pgpgout": 472429900, "pgrefill": 2602042, "pgreuse": 742840224, "pgrotated": 316, "pgscan_anon": 15494945, "pgscan_direct": 21037589, "pgscan_direct_throttle": 0, "pgscan_file": 5592475, "pgscan_kswapd": 49831, "pgskip_dma": 0, "pgskip_dma32": 0, "pgskip_movable": 0, "pgskip_normal": 0, "pgsteal_anon": 2032475, "pgsteal_direct": 7193725, "pgsteal_file": 5205709, "pgsteal_kswapd": 44459, "pswpin": 72435, "pswpout": 2032475, "slabs_scanned": 1097218, "swap_ra": 29, "swap_ra_hit": 5, "thp_collapse_alloc": 1212, "thp_collapse_alloc_failed": 0, "thp_deferred_split_page": 861, "thp_fault_alloc": 10248, "thp_fault_fallback": 0, "thp_fault_fallback_charge": 0, "thp_file_alloc": 0, "thp_file_fallback": 0, "thp_file_fallback_charge": 0, "thp_file_mapped": 0, "thp_migration_fail": 0, "thp_migration_split": 0, "thp_migration_success": 0, "thp_split_page": 0, "thp_split_page_failed": 0, "thp_split_pmd": 3813, "thp_split_pud": 0, "thp_swpout": 0, "thp_swpout_fallback": 0, "thp_zero_page_alloc": 2, "thp_zero_page_alloc_failed": 0, "unevictable_pgs_cleared": 0, "unevictable_pgs_culled": 56303, "unevictable_pgs_mlocked": 36952, "unevictable_pgs_munlocked": 36952, "unevictable_pgs_rescued": 36952, "unevictable_pgs_scanned": 0, "unevictable_pgs_stranded": 0, "workingset_activate_anon": 33561, "workingset_activate_file": 56974, "workingset_nodereclaim": 130600, "workingset_nodes": 9668, "workingset_refault_anon": 72435, "workingset_refault_file": 448332, "workingset_restore_anon": 0, "workingset_restore_file": 40457, "zone_reclaim_failed": 0 } } }, "metricset": { "name": "memory", "period": 10000 }, "service": { "type": "linux" } }
On this page
Was this helpful?
Thank you for your feedback.