Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ pub async fn cluster_datacenter_topology_get(
FROM db_cluster.servers
WHERE
datacenter_id = ANY($1) AND
cloud_destroy_ts IS NULL AND
taint_ts IS NULL
cloud_destroy_ts IS NULL
",
&input.datacenter_ids,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,14 @@ pub async fn pegboard_client_usage_get(ctx: &OperationCtx, input: &Input) -> Glo
r#"
label_replace(
sum by (client_id) (
last_over_time(
rivet_pegboard_client_cpu_allocated{{
client_id=~"({client_ids})",
}}
[15m:15s]
)
rivet_pegboard_client_cpu_allocated{{client_id=~"({client_ids})"}}
),
"metric", "cpu", "", ""
)
OR
label_replace(
sum by (client_id) (
last_over_time(
rivet_pegboard_client_memory_allocated{{
client_id=~"({client_ids})",
}}
[15m:15s]
)
rivet_pegboard_client_memory_allocated{{client_id=~"({client_ids})"}}
),
"metric", "mem", "", ""
)
Expand Down
Loading