Skip to content

Commit

Permalink
prometheus: align relabelling convention with prometheus example (#1520)
Browse files Browse the repository at this point in the history
* charts/prometheus: align relabelling convention with prometheus example

Signed-off-by: paulfantom <pawel@krupa.net.pl>

* charts/prometheus: update component versions to latest available

Signed-off-by: paulfantom <pawel@krupa.net.pl>

* added update info to readme

Signed-off-by: André Bauer <andre.bauer@staffbase.com>

* fix whitespace

Signed-off-by: André Bauer <andre.bauer@staffbase.com>

* fix cli command

Signed-off-by: André Bauer <andre.bauer@staffbase.com>

Co-authored-by: André Bauer <monotek@users.noreply.github.com>
Co-authored-by: André Bauer <andre.bauer@staffbase.com>
  • Loading branch information
3 people authored Nov 27, 2021
1 parent 5d2f7ca commit df8add6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions charts/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: prometheus
appVersion: 2.31.1
version: 14.12.0
version: 15.0.0
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png
Expand All @@ -26,6 +26,6 @@ engine: gotpl
type: application
dependencies:
- name: kube-state-metrics
version: "3.5.*"
version: "4.0.*"
repository: https://prometheus-community.github.io/helm-charts
condition: kubeStateMetrics.enabled
10 changes: 5 additions & 5 deletions charts/prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ $ helm upgrade [RELEASE_NAME] [CHART] --install

_See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation._

### To 15.0

Version 15.0.0 changes the relabeling config, aligning it with the [Prometheus community conventions](https://github.com/prometheus/prometheus/pull/9832). If you've made manual changes to the relabeling config, you have to adapt your changes.

### To 9.0

Version 9.0 adds a new option to enable or disable the Prometheus Server. This supports the use case of running a Prometheus server in one k8s cluster and scraping exporters in another cluster while using the same chart for each deployment. To install the server `server.enabled` must be set to `true`.
Expand Down Expand Up @@ -114,11 +118,7 @@ Assuming you have an existing release of the prometheus chart, named `prometheus
See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments, visit the chart's [values.yaml](./values.yaml), or run these configuration commands:

```console
# Helm 2
$ helm inspect values prometheus-community/prometheus
# Helm 3
$ helm show values prometheus-community/prometheus
helm show values prometheus-community/prometheus
```

You may similarly use the above configuration commands on each chart [dependency](#dependencies) to see it's configurations.
Expand Down
28 changes: 14 additions & 14 deletions charts/prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ nodeExporter:
##
image:
repository: quay.io/prometheus/node-exporter
tag: v1.1.2
tag: v1.3.0
pullPolicy: IfNotPresent

## Specify if a Pod Security Policy for node-exporter must be created
Expand Down Expand Up @@ -1111,7 +1111,7 @@ pushgateway:
##
image:
repository: prom/pushgateway
tag: v1.3.1
tag: v1.4.2
pullPolicy: IfNotPresent

## pushgateway priorityClassName
Expand Down Expand Up @@ -1555,13 +1555,13 @@ serverFiles:
regex: __meta_kubernetes_service_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: kubernetes_namespace
target_label: namespace
- source_labels: [__meta_kubernetes_service_name]
action: replace
target_label: kubernetes_name
target_label: service
- source_labels: [__meta_kubernetes_pod_node_name]
action: replace
target_label: kubernetes_node
target_label: node

# Scrape config for slow service endpoints; same as above, but with a larger
# timeout and a larger interval
Expand Down Expand Up @@ -1609,13 +1609,13 @@ serverFiles:
regex: __meta_kubernetes_service_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: kubernetes_namespace
target_label: namespace
- source_labels: [__meta_kubernetes_service_name]
action: replace
target_label: kubernetes_name
target_label: service
- source_labels: [__meta_kubernetes_pod_node_name]
action: replace
target_label: kubernetes_node
target_label: node

- job_name: 'prometheus-pushgateway'
honor_labels: true
Expand Down Expand Up @@ -1656,9 +1656,9 @@ serverFiles:
- action: labelmap
regex: __meta_kubernetes_service_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
target_label: kubernetes_namespace
target_label: namespace
- source_labels: [__meta_kubernetes_service_name]
target_label: kubernetes_name
target_label: service

# Example scrape config for pods
#
Expand Down Expand Up @@ -1699,10 +1699,10 @@ serverFiles:
regex: __meta_kubernetes_pod_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: kubernetes_namespace
target_label: namespace
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod_name
target_label: pod
- source_labels: [__meta_kubernetes_pod_phase]
regex: Pending|Succeeded|Failed|Completed
action: drop
Expand Down Expand Up @@ -1750,10 +1750,10 @@ serverFiles:
regex: __meta_kubernetes_pod_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: kubernetes_namespace
target_label: namespace
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod_name
target_label: pod
- source_labels: [__meta_kubernetes_pod_phase]
regex: Pending|Succeeded|Failed|Completed
action: drop
Expand Down

0 comments on commit df8add6

Please sign in to comment.