标签:tar 使用配置 dash lock ash type object attr lang
安装配置Grafana参考
https://testerhome.com/articles/23629
https://github.com/prometheus/jmx_exporter
vim simple-config.yml
lowercaseOutputLabelNames: 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+):‘
name: os_$1
type: GAUGE
attrNameSnakeCase: true
scrape_configs:
- job_name: ‘java‘
static_configs:
- targets: [‘<host>:<port>‘]
nohup ./prometheus > prometheus.log 2>&1 &
https://grafana.com/grafana/dashboards/7727
https://grafana.com/grafana/dashboards/8563
注:8563模板对7727有依赖,所以需全部安装,否则不能正常使用
扫一扫,关注我
标签:tar 使用配置 dash lock ash type object attr lang
原文地址:https://www.cnblogs.com/hally/p/13279870.html