Skip to content

Commit 870fbc4

Browse files
committed
fix: #206 sum requests count by status code
1 parent ad7ae11 commit 870fbc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/Http/Controllers/NodeController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function show(Node $node)
8383
alias(round(ptah_node_disk_used_bytes{path="/"} / ptah_node_disk_total_bytes{path="/"} * 100), "disk_usage"),
8484
alias(round(rate(ptah_node_network_rx_bytes / 1024)), "network_rx_bytes"),
8585
alias(round(rate(ptah_node_network_tx_bytes / 1024)), "network_tx_bytes"),
86-
alias(round(increase(ptah_caddy_http_requests_count)), "http_requests_count"),
86+
alias(round(sum(increase(ptah_caddy_http_requests_count)) by (status_code)), "http_requests_count"),
8787
alias(sum(increase(ptah_caddy_http_requests_duration_bucket)) by (le), "http_requests_duration"),
8888
)
8989
QUERY;

0 commit comments

Comments
 (0)