Skip to content

Commit

Permalink
Merge pull request #2302 from slashpai/scrape-sample-limit-alerts
Browse files Browse the repository at this point in the history
MON-3621: Enable `extra-scrape-metrics` feature in PrometheusUWM
  • Loading branch information
openshift-merge-bot[bot] committed Apr 11, 2024
2 parents a2bf364 + 105d687 commit 7f498b4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Note: This CHANGELOG is only for the monitoring team to track all monitoring related changes. Please see OpenShift release notes for official changes.

## 4.16

- [#2302](https://github.com/openshift/cluster-monitoring-operator/issues/2302) Enable feature `extra-scrape-metrics` in Prometheus user-workload

## 4.15

- [#2022](https://github.com/openshift/cluster-monitoring-operator/pull/2022) Add support to switch to metrics server from prometheus-adapter when the `MetricsServer` feature gate is enabled.
Expand Down
3 changes: 2 additions & 1 deletion assets/prometheus-user-workload/prometheus.yaml
Expand Up @@ -165,7 +165,8 @@ spec:
name: secret-grpc-tls
- name: prometheus
terminationMessagePolicy: FallbackToLogsOnError
enableFeatures: []
enableFeatures:
- extra-scrape-metrics
enforcedNamespaceLabel: namespace
externalLabels: {}
ignoreNamespaceSelectors: true
Expand Down
2 changes: 2 additions & 0 deletions jsonnet/components/prometheus-user-workload.libsonnet
Expand Up @@ -292,6 +292,8 @@ function(params)

prometheus+: {
spec+: {
// Enable experimental additional scrape metrics feature
enableFeatures+: ['extra-scrape-metrics'],
overrideHonorTimestamps: true,
overrideHonorLabels: true,
ignoreNamespaceSelectors: true,
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/config_test.go
Expand Up @@ -654,7 +654,7 @@ func TestUserWorkloadMonitorPrometheusK8Config(t *testing.T) {
expectCatchAllToleration(),
expectMatchingRequests(podName, containerName, mem, cpu),
// Set by default.
expectContainerArg("--enable-feature=exemplar-storage", containerName),
expectContainerArg("--enable-feature=extra-scrape-metrics,exemplar-storage", containerName),
// Set via the config above.
expectContainerArg("--log.level=debug", containerName),
expectContainerArg("--storage.tsdb.retention.time=10h", containerName),
Expand Down

0 comments on commit 7f498b4

Please sign in to comment.