fix(airflow): fix checking monitoring flag
This commit is contained in:
@@ -148,7 +148,7 @@ namespace: {{ .Env.PROMETHEUS_NAMESPACE }}
|
|||||||
ingress:
|
ingress:
|
||||||
hosts:
|
hosts:
|
||||||
- {{ .Env.GRAFANA_HOST }}
|
- {{ .Env.GRAFANA_HOST }}
|
||||||
{{- if .Env.MONITORING_ENABLED }}
|
{{- if eq .Env.MONITORING_ENABLED "true" }}
|
||||||
monitoring:
|
monitoring:
|
||||||
enabled: true
|
enabled: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -181,7 +181,7 @@ install:
|
|||||||
ServiceMonitor template (`servicemonitor.gomplate.yaml`):
|
ServiceMonitor template (`servicemonitor.gomplate.yaml`):
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
{{- if .Env.MONITORING_ENABLED }}
|
{{- if eq .Env.MONITORING_ENABLED "true" }}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ statsd:
|
|||||||
drop:
|
drop:
|
||||||
- ALL
|
- ALL
|
||||||
|
|
||||||
{{- if .Env.MONITORING_ENABLED }}
|
{{- if eq .Env.MONITORING_ENABLED "true" }}
|
||||||
# Prometheus metrics configuration
|
# Prometheus metrics configuration
|
||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user