feat: update heracles, use log scale for network bytes

This commit is contained in:
Jeremy Wall 2024-05-22 13:28:29 -04:00
parent b739a91af9
commit 60fa6f95b7
2 changed files with 10 additions and 9 deletions

View File

@ -71,7 +71,7 @@
+ node_memory_active_bytes) + node_memory_active_bytes)
/ node_memory_total_bytes / node_memory_total_bytes
''; '';
meta = { config = {
name_format = "`\${labels.instance} - Memory`"; name_format = "`\${labels.instance} - Memory`";
yaxis = "y"; yaxis = "y";
fill = "tozeroy"; fill = "tozeroy";
@ -84,7 +84,7 @@
/ ignoring(mode) group_left / ignoring(mode) group_left
sum by (job,instance)(irate(node_cpu_seconds_total[5m])) sum by (job,instance)(irate(node_cpu_seconds_total[5m]))
''; '';
meta = { config = {
name_format = "`\${labels.instance} - \${labels.mode}`"; name_format = "`\${labels.instance} - \${labels.mode}`";
axis = "y"; axis = "y";
}; };
@ -106,7 +106,7 @@
query = '' query = ''
stun_attempt_latency_ms stun_attempt_latency_ms
''; '';
meta = { config = {
name_format = "`UDP \${labels.domain} latency`"; name_format = "`UDP \${labels.domain} latency`";
yaxis = "y"; yaxis = "y";
}; };
@ -116,7 +116,7 @@
query = '' query = ''
ping_latency ping_latency
''; '';
meta = { config = {
name_format = "`Ping \${labels.device} latency`"; name_format = "`Ping \${labels.device} latency`";
yaxis = "y"; yaxis = "y";
}; };
@ -130,6 +130,7 @@
yaxes = [ yaxes = [
{ {
anchor = "y"; anchor = "y";
type = "log";
} }
]; ];
plots = [ plots = [
@ -138,7 +139,7 @@
query = '' query = ''
irate(node_network_receive_bytes_total{device=~"(lo|en).*"}[5m]) irate(node_network_receive_bytes_total{device=~"(lo|en).*"}[5m])
''; '';
meta = { config = {
name_format = "`\${labels.device} Rx`"; name_format = "`\${labels.device} Rx`";
yaxis = "y"; yaxis = "y";
}; };
@ -148,7 +149,7 @@
query = '' query = ''
irate(node_network_transmit_bytes_total{device=~"(lo|en).*"}[5m]) irate(node_network_transmit_bytes_total{device=~"(lo|en).*"}[5m])
''; '';
meta = { config = {
name_format = "`\${labels.device} Tx`"; name_format = "`\${labels.device} Tx`";
yaxis = "y"; yaxis = "y";
}; };

View File

@ -347,11 +347,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1711068625, "lastModified": 1716397295,
"narHash": "sha256-kNfh3rmFfHKTng6Aun1UZ/atl51XobRjLIeYRJQ6628=", "narHash": "sha256-dGJ2TvmOrgenBLvbYQBk9zfx5g+LCG8qdjQWMNF8Hws=",
"owner": "zaphar", "owner": "zaphar",
"repo": "Heracles", "repo": "Heracles",
"rev": "471d159af752b62f8774d1e4462f2111059583da", "rev": "ae669767c82965e1db334c178f211fa4c4586df6",
"type": "github" "type": "github"
}, },
"original": { "original": {