victoria metrics api

vmetrics

reach the dashboard either through tunnel –or– through nginx reverse-proxy

    ssh vmetrics -L 8428:localhost:8428
curl -I localhost:8428

    curl -I https://vmetrics.nethence.com/vmui/ -u USER:PASSWORD

and proceed with some API request queries e.g.

    curl -s --fail "http://localhost:8428/api/v1/query?query=log_metric_gauge_cpu_p" | jq

here is some more

log_metric_gauge_cpu_p
log_metric_gauge_mem.used / log_metric_gauge_mem.total * 100
log_metric_gauge_write_size
log_metric_gauge_read_size
log_metric_gauge_eth0.tx.bytes
log_metric_gauge_eth0.rx.bytes
log_metric_gauge_eth0.tx.packets
log_metric_gauge_eth0.rx.packets

HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun