github.com/google/cadvisor@v0.49.1/collector/config/sample_config.json (about) 1 { 2 "endpoint" : "http://localhost:8000/nginx_status", 3 "metrics_config" : [ 4 { "name" : "activeConnections", 5 "metric_type" : "gauge", 6 "units" : "number of active connections", 7 "data_type" : "int", 8 "polling_frequency" : 10, 9 "regex" : "Active connections: ([0-9]+)" 10 }, 11 { "name" : "reading", 12 "metric_type" : "gauge", 13 "units" : "number of reading connections", 14 "data_type" : "int", 15 "polling_frequency" : 10, 16 "regex" : "Reading: ([0-9]+) .*" 17 }, 18 { "name" : "writing", 19 "metric_type" : "gauge", 20 "data_type" : "int", 21 "units" : "number of writing connections", 22 "polling_frequency" : 10, 23 "regex" : ".*Writing: ([0-9]+).*" 24 }, 25 { "name" : "waiting", 26 "metric_type" : "gauge", 27 "units" : "number of waiting connections", 28 "data_type" : "int", 29 "polling_frequency" : 10, 30 "regex" : ".*Waiting: ([0-9]+)" 31 } 32 ] 33 34 }