Skip to content

Commit

Permalink
[bitnami/kube-prometheus] Add support for scrapeClasses (#30579)
Browse files Browse the repository at this point in the history
* [bitnami/kube-prometheus] Add support for scrapeClasses

Signed-off-by: David Hedberg <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

---------

Signed-off-by: David Hedberg <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Signed-off-by: Juan José Martos <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
Co-authored-by: Juan José Martos <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2024
1 parent 0397460 commit 0e5573b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
8 changes: 6 additions & 2 deletions bitnami/kube-prometheus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 10.0.5 (2024-11-25)
## 10.1.0 (2024-11-26)

* [bitnami/kube-prometheus] Release 10.0.5 ([#30565](https://github.com/bitnami/charts/pull/30565))
* [bitnami/kube-prometheus] Add support for scrapeClasses ([#30579](https://github.com/bitnami/charts/pull/30579))

## <small>10.0.5 (2024-11-25)</small>

* [bitnami/kube-prometheus] Release 10.0.5 (#30565) ([ce829ea](https://github.com/bitnami/charts/commit/ce829ea73180c41fae4f249214cd22faafdf92cc)), closes [#30565](https://github.com/bitnami/charts/issues/30565)

## <small>10.0.4 (2024-11-14)</small>

Expand Down
2 changes: 1 addition & 1 deletion bitnami/kube-prometheus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ maintainers:
name: kube-prometheus
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/kube-prometheus
version: 10.0.5
version: 10.1.0
1 change: 1 addition & 0 deletions bitnami/kube-prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ As an alternative, use one of the preset configurations for pod affinity, pod an
| `prometheus.probeNamespaceSelector` | Namespaces to be selected for Probe discovery | `{}` |
| `prometheus.scrapeConfigSelector` | ScrapeConfig to be selected for target discovery. | `{}` |
| `prometheus.scrapeConfigNamespaceSelector` | Namespaces to be selected for ScrapeConfig discovery | `{}` |
| `prometheus.scrapeClasses` | List of scrape classes to expose to scraping objects | `[]` |
| `prometheus.retention` | Metrics retention days | `10d` |
| `prometheus.retentionSize` | Maximum size of metrics | `""` |
| `prometheus.disableCompaction` | Disable the compaction of the Prometheus TSDB | `false` |
Expand Down
3 changes: 3 additions & 0 deletions bitnami/kube-prometheus/templates/prometheus/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ spec:
{{- else }}
scrapeConfigNamespaceSelector: {}
{{- end }}
{{- if .Values.prometheus.scrapeClasses }}
scrapeClasses: {{- include "common.tplvalues.render" (dict "value" .Values.prometheus.scrapeClasses "context" $) | nindent 4 }}
{{- end }}
enableRemoteWriteReceiver: {{ .Values.prometheus.enableRemoteWriteReceiver }}
{{- if .Values.prometheus.remoteRead }}
remoteRead: {{- include "common.tplvalues.render" (dict "value" .Values.prometheus.remoteRead "context" $) | nindent 4 }}
Expand Down
4 changes: 4 additions & 0 deletions bitnami/kube-prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,10 @@ prometheus:
## See https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#namespaceselector for usage
##
scrapeConfigNamespaceSelector: {}
## @param prometheus.scrapeClasses List of scrape classes to expose to scraping objects
## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#scrapeclass for usage
##
scrapeClasses: []
## @param prometheus.retention Metrics retention days
##
retention: 10d
Expand Down

0 comments on commit 0e5573b

Please sign in to comment.