Начал изучать https://github.com/markuslindenberg/nginx_request_exporter
Часть конфига nginx.conf:
log_format prometheus 'time:$request_time host="$host" remote_addr="$remote_addr" ';
access_log syslog:server=127.0.0.1:9514 prometheus;
на выходе получаю метрики:
nginx_request_time_bucket{host="vhost2",remote_addr="127.0.0.1",le="5"} 2621
nginx_request_time_bucket{host="vhost2",remote_addr="127.0.0.1",le="+Inf"} 2621
nginx_request_time_sum{host="vhost2",remote_addr="127.0.0.1"} 0.7450000000000006
nginx_request_time_count{host="vhost2",remote_addr="127.0.0.1"} 2621
nginx_request_time_bucket{host="vhost2",remote_addr="172.25.247.99",le="5"} 2
nginx_request_time_bucket{host="vhost2",remote_addr="172.25.247.99",le="+Inf"} 2
nginx_request_time_sum{host="vhost2",remote_addr="172.25.247.99"} 0.001
nginx_request_time_count{host="vhost2",remote_addr="172.25.247.99"} 2
nginx_request_time_bucket{host="vhost2",remote_addr="172.26.9.198",le="5"} 1462
nginx_request_time_bucket{host="vhost2",remote_addr="172.26.9.198",le="+Inf"} 1462
nginx_request_time_sum{host="vhost2",remote_addr="172.26.9.198"} 0.45500000000000035
nginx_request_time_count{host="vhost2",remote_addr="172.26.9.198"} 1462
Как с помощью promql получить график популярных IP адресов клиентов (remote_addr) ?