Skip to content

Commit

Permalink
fix: #206 sum requests count by status code
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Oct 5, 2024
1 parent ad7ae11 commit 870fbc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/NodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function show(Node $node)
alias(round(ptah_node_disk_used_bytes{path="/"} / ptah_node_disk_total_bytes{path="/"} * 100), "disk_usage"),
alias(round(rate(ptah_node_network_rx_bytes / 1024)), "network_rx_bytes"),
alias(round(rate(ptah_node_network_tx_bytes / 1024)), "network_tx_bytes"),
alias(round(increase(ptah_caddy_http_requests_count)), "http_requests_count"),
alias(round(sum(increase(ptah_caddy_http_requests_count)) by (status_code)), "http_requests_count"),
alias(sum(increase(ptah_caddy_http_requests_duration_bucket)) by (le), "http_requests_duration"),
)
QUERY;
Expand Down

0 comments on commit 870fbc4

Please sign in to comment.