Skip to content

Commit

Permalink
configure prometheus ruler with insight key (#5510)
Browse files Browse the repository at this point in the history
* configure prometheus ruler with insight key

* mark component for prometheus ruler logger

* changelog
  • Loading branch information
francoposa authored Jul 24, 2023
1 parent d99cb3c commit 10099e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
* [ENHANCEMENT] Ingester: Add two metrics tracking resource utilization calculated by utilization based limiter: #5496
* `cortex_ingester_utilization_limiter_current_cpu_load`: The current exponential weighted moving average of the ingester's CPU load
* `cortex_ingester_utilization_limiter_current_memory_usage_bytes`: The current ingester memory utilization
* [ENHANCEMENT] Ruler: added `insight=true` field to ruler's prometheus component for rule evaluation logs. #5510
* [ENHANCEMENT] Distributor Ingester: Add metrics to count the number of requests rejected for hitting per-instance limits, `cortex_distributor_instance_rejected_requests_total` and `cortex_ingester_instance_rejected_requests_total` respectively. #5551
* [ENHANCEMENT] Distributor: add support for ingesting exponential histograms that are over the native histogram scale limit of 8 in OpenTelemetry format by downscaling them. #5532
* [ENHANCEMENT] General: buffered logging: #5506
Expand Down
2 changes: 1 addition & 1 deletion pkg/ruler/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func DefaultTenantManagerFactory(
GroupEvaluationContextFunc: FederatedGroupContextFunc,
ExternalURL: cfg.ExternalURL.URL,
NotifyFunc: rules.SendAlerts(notifier, cfg.ExternalURL.String()),
Logger: log.With(logger, "user", userID),
Logger: log.With(logger, "component", "ruler", "insight", true, "user", userID),
Registerer: reg,
OutageTolerance: cfg.OutageTolerance,
ForGracePeriod: cfg.ForGracePeriod,
Expand Down

0 comments on commit 10099e0

Please sign in to comment.