Skip to content

Commit f8bcc30

Browse files
committed
test
1 parent f55bcef commit f8bcc30

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

kubernetes/linera-validator/helmfile.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
environments:
22
default:
33
values:
4-
- writeToGrafanaCloud: {{ env "LINERA_WRITE_TO_GRAFANA_CLOUD" | default "false" }}
4+
- writeToGrafanaCloud: {{ env "LINERA_WRITE_TO_GRAFANA_CLOUD" | default "true" }}
55
validatorLabel: {{ env "LINERA_VALIDATOR_LABEL" | default (printf "local-%s" (env "USER")) }}
66

77
---
@@ -25,8 +25,8 @@ releases:
2525
- scylla/scylla
2626
values:
2727
{{ if .Values.writeToGrafanaCloud -}}
28-
- grafanaCloudUsername: {{ fetchSecretValue (env "LINERA_GRAFANA_CLOUD_USERNAME_SECRET") | quote }}
29-
grafanaCloudAPIToken: {{ fetchSecretValue (env "LINERA_GRAFANA_CLOUD_API_TOKEN_SECRET") | quote }}
28+
- grafanaCloudUsername: {{ fetchSecretValue (env "LINERA_GRAFANA_CLOUD_USERNAME_SECRET" | default "ref+gcpsecrets://linera-io-dev/grafana-cloud-username?version=latest") | quote }}
29+
grafanaCloudAPIToken: {{ fetchSecretValue (env "LINERA_GRAFANA_CLOUD_API_TOKEN_SECRET" | default "ref+gcpsecrets://linera-io-dev/grafana-cloud-api-token?version=latest") | quote }}
3030
{{- end }}
3131
- writeToGrafanaCloud: {{ .Values.writeToGrafanaCloud }}
3232
- {{ env "LINERA_HELMFILE_VALUES_LINERA_CORE" | default "values-local.yaml.gotmpl" }}

kubernetes/linera-validator/templates/scylla-manager-service-monitor.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if not .Values.writeToGrafanaCloud }}
21
apiVersion: monitoring.coreos.com/v1
32
kind: ServiceMonitor
43
metadata:
@@ -16,4 +15,3 @@ spec:
1615
targetLabel: instance
1716
regex: (.*)
1817
replacement: ${1}
19-
{{- end }}

kubernetes/linera-validator/templates/scylla-service-monitor.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if not .Values.writeToGrafanaCloud }}
21
apiVersion: monitoring.coreos.com/v1
32
kind: ServiceMonitor
43
metadata:
@@ -32,4 +31,3 @@ spec:
3231
regex: (.*)
3332
replacement: ${1}
3433
action: replace
35-
{{- end }}

kubernetes/linera-validator/values-local.yaml.gotmpl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ kube-prometheus-stack:
5555
name: grafana-cloud-auth-secret
5656
key: password
5757
writeRelabelConfigs:
58-
- source_labels: [__name__]
59-
regex: 'linera_.*'
60-
action: keep
58+
- source_labels:
59+
- "__name__"
60+
regex: "(apiextensions|apiserver|csi|kube|kubelet|kubernetes|node|prober|prometheus|rest|storage|volume|etcd|net|grafana)_.+"
61+
action: "drop"
6162
externalLabels:
6263
validator: {{ .Values.validatorLabel }}
6364
{{- end }}
@@ -77,7 +78,6 @@ kube-prometheus-stack:
7778
# This prevents from adding any Helm label to serviceMonitorSelector if
7879
# above is empty.
7980
serviceMonitorSelectorNilUsesHelmValues: false
80-
{{- if not .Values.writeToGrafanaCloud }}
8181
# Relabelings needed for Scylla dashboards
8282
additionalScrapeConfigs:
8383
- job_name: scylla
@@ -117,7 +117,6 @@ kube-prometheus-stack:
117117
regex: '([0-9]+\.[0-9]+)(\.?[0-9]*).*'
118118
replacement: '$1$2'
119119
target_label: svr
120-
{{- end }}
121120

122121
# Environment
123122
environment: "kind"

0 commit comments

Comments
 (0)