Skip to content

Commit

Permalink
Fix Helm Chart Prometheus Adapter Metrics (#53)
Browse files Browse the repository at this point in the history
* Fix Helm Chart Prometheus Adapter Metrics

* Update CHANGELOG.md
  • Loading branch information
paulliwog authored Dec 18, 2024
1 parent ddf6107 commit 9aec42d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions charts/deepgram-self-hosted/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

## [Unreleased]

### Changed

- Fixed default ratio metrics in Prometheus Adapter chart values to use 0.0 to 1.0 scale to match autoscaling documentation

## [0.8.0] - 2024-11-21

### Added
Expand Down
4 changes: 2 additions & 2 deletions charts/deepgram-self-hosted/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ prometheus-adapter:
- name:
as: "engine_estimated_stream_capacity"
seriesQuery: 'engine_active_requests{kind="stream"}'
metricsQuery: 'avg_over_time((sum(engine_active_requests{kind="stream"}) / sum(engine_estimated_stream_capacity) * 100)[1m:1m])'
metricsQuery: 'avg_over_time((sum(engine_active_requests{kind="stream"}) / sum(engine_estimated_stream_capacity))[1m:1m])'
resources:
overrides:
namespace: { resource: "namespace" }
Expand All @@ -775,7 +775,7 @@ prometheus-adapter:
- name:
as: "engine_requests_active_to_max_ratio"
seriesQuery: "engine_max_active_requests"
metricsQuery: "avg_over_time((sum(engine_active_requests) / sum(engine_max_active_requests) * 100)[1m:1m])"
metricsQuery: "avg_over_time((sum(engine_active_requests) / sum(engine_max_active_requests))[1m:1m])"
resources:
overrides:
namespace: { resource: "namespace" }
Expand Down

0 comments on commit 9aec42d

Please sign in to comment.