总体架构图
下图展示了各个组件在此过程中的作用
组件1:jmx_prometheus,负责生成JVM的监控信息
- 下载agent的jar包:jmx_prometheus_javaagent-0.12.0.jar,下载地址
- 配置:jmx_prometheus.yaml,更多配置信息请参考 jmx_exporter
wercaseOutputLabelNames: true
lowercaseOutputName: true
whitelistObjectNames: ["java.lang:type=OperatingSystem"]
blacklistObjectNames: []
rules:
- pattern: 'java.lang<type=OperatingSystem><>(committed_virtual_memory|free_physical_memory|free_swap_space|total_physical_memory|total_swap_space)_size:'
name: os_$1_bytes
type: GAUGE
attrNameSnakeCase: true
- pattern: 'java.lang<type=OperatingSystem><>((?!process_cpu_time)\w+):'
n