Skip to content

Commit

Permalink
fix: Metric now uses full execution time (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalezzfelipe authored Jun 11, 2024
1 parent 48f57a4 commit e23d4e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bootstrap/proxy/config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ locals {
tiers = [
{
"name" = "0",
"max_connections" = 1
"max_connections" = 2
"rates" = [
{
"interval" = "1m",
Expand Down
2 changes: 1 addition & 1 deletion operator/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ pub fn run_metrics_collector(state: Arc<State>) {
if let Some(tier) = result.metric.tier {
state
.metrics
.count_usage(project, resource_name, &tier, result.value);
.count_usage(project, resource_name, &tier, total_exec_time);
}
}
}
Expand Down

0 comments on commit e23d4e6

Please sign in to comment.