Skip to content

Commit

Permalink
[KEDA] add relabelling support (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiguel-teixeira authored Jul 15, 2022
1 parent 44d7fbe commit c26fcc1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ their default values.
| `prometheus.metricServer.podMonitor.scrapeTimeout` | Scraping timeout for metric server using podMonitor crd (prometheus operator) | ``
| `prometheus.metricServer.podMonitor.namespace` | Scraping namespace for metric server using podMonitor crd (prometheus operator) | ``
| `prometheus.metricServer.podMonitor.additionalLabels` | Additional labels to add for metric server using podMonitor crd (prometheus operator) | `{}`
| `prometheus.metricServer.podMonitor.relabelings` | List of expressions that define custom relabeling rules for metric server podMonitor crd (prometheus operator) | `[]`
| `prometheus.operator.enabled` | Enable keda operator prometheus metrics expose | `false`
| `prometheus.operator.port` | HTTP port used for exposing keda operator prometheus metrics | `9022`
| `prometheus.operator.path` | Path used for exposing keda operator prometheus metrics | `/metrics`
Expand All @@ -133,6 +134,7 @@ their default values.
| `prometheus.operator.prometheusRules.namespace` | Scraping namespace for keda operator using prometheusRules crd (prometheus operator) | ``
| `prometheus.operator.prometheusRules.additionalLabels` | Additional labels to add for keda operator using prometheusRules crd (prometheus operator) | `{}`
| `prometheus.operator.prometheusRules.alerts` | Additional alerts to add for keda operator using prometheusRules crd (prometheus operator) | `[]`
| `prometheus.operator.podMonitor.relabelings` | List of expressions that define custom relabeling rules for keda operator podMonitor crd (prometheus operator) | `[]`
| `volumes.keda.extraVolumes` | Extra volumes for keda deployment | `[]`
| `volumes.keda.extraVolumeMounts` | Extra volume mounts for keda deployment | `[]`
| `volumes.metricsApiServer.extraVolumes` | Extra volumes for metric server deployment | `[]`
Expand Down
4 changes: 4 additions & 0 deletions keda/templates/14-keda-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
{{- with .Values.prometheus.operator.podMonitor.scrapeTimeout }}
scrapeTimeout: {{ . }}
{{- end }}
{{- with .Values.prometheus.operator.podMonitor.relabelings }}
relabelings:
{{ toYaml . | indent 4 }}
{{- end }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
Expand Down
4 changes: 4 additions & 0 deletions keda/templates/26-metrics-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
{{- with .Values.prometheus.metricServer.podMonitor.scrapeTimeout }}
scrapeTimeout: {{ . }}
{{- end }}
{{- with .Values.prometheus.metricServer.podMonitor.relabelings }}
relabelings:
{{ toYaml . | indent 4 }}
{{- end }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
Expand Down
2 changes: 2 additions & 0 deletions keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ prometheus:
scrapeTimeout:
namespace:
additionalLabels: {}
relabelings: []
operator:
enabled: false
port: 8080
Expand All @@ -238,6 +239,7 @@ prometheus:
scrapeTimeout:
namespace:
additionalLabels: {}
relabelings: []
prometheusRules:
# Enables PrometheusRules creation for the Prometheus Operator
enabled: false
Expand Down

0 comments on commit c26fcc1

Please sign in to comment.