Skip to content

Commit

Permalink
[kube-prometheus-stack] allow httpMethod selection on prometheus data…
Browse files Browse the repository at this point in the history
…source (#3053)

* feat: adding ability to chose httpMethod for querying

Signed-off-by: sgewirtz1 <sgewirtz1@gmail.com>

* refactor: added preferred default value

grafana/grafana#30837
all versions after prometheus v2.1.0 (5+ years old?) use this value as default

Signed-off-by: sgewirtz1 <sgewirtz1@gmail.com>

* refactor: incremented version

Signed-off-by: sgewirtz1 <sgewirtz1@gmail.com>

* Update values.yaml

Signed-off-by: sgewirtz1 <sgewirtz1@gmail.com>

---------

Signed-off-by: sgewirtz1 <sgewirtz1@gmail.com>
Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com>
  • Loading branch information
sgewirtz1 and GMartinez-Sisti committed Apr 24, 2023
1 parent dd5f89e commit 78e0e2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 45.19.0
version: 45.20.0
appVersion: v0.63.0
kubeVersion: ">=1.16.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ data:
access: proxy
isDefault: {{ .Values.grafana.sidecar.datasources.isDefaultDatasource }}
jsonData:
httpMethod: {{ .Values.grafana.sidecar.datasources.httpMethod }}
timeInterval: {{ $scrapeInterval }}
{{- if .Values.grafana.sidecar.datasources.timeout }}
timeout: {{ .Values.grafana.sidecar.datasources.timeout }}
Expand Down
3 changes: 3 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,9 @@ grafana:
##
annotations: {}

## Set method for HTTP to send query to datasource
httpMethod: POST

## Create datasource for each Pod of Prometheus StatefulSet;
## this uses headless service `prometheus-operated` which is
## created by Prometheus Operator
Expand Down

0 comments on commit 78e0e2a

Please sign in to comment.