Skip to content

Commit

Permalink
Improvements to prometheus and Grafana (#1991)
Browse files Browse the repository at this point in the history
  • Loading branch information
luoluoyuyu authored Oct 4, 2023
1 parent 4829537 commit 5ed09fd
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 681 deletions.
2 changes: 1 addition & 1 deletion installer/k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ rm -rf ${HOME}/streampipes-k8s
| prometheus.config.backendJobName | Prometheus backend job name | "backend" |
| prometheus.config.extensionsName | Prometheus extensions job name | "extensions-all-iiot" |
| prometheus.config.tokenFileName | Prometheus token file name | "token" |
| prometheus.config.tokenFileDir | Prometheus token file directory | "/opt/data/"
| prometheus.config.tokenFileDir | Prometheus token file directory | "/opt/data"

#### Monitoring - Grafana
| Parameter Name | Description | Value |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ data:
- job_name: "{{ .Values.monitoring.prometheus.config.backendJobName }}"
metrics_path: "/streampipes-backend/actuator/prometheus"
bearer_token_file: "{{ .Values.monitoring.prometheus.config.tokenFileDir }}{{ .Values.monitoring.prometheus.config.tokenFileName }}{{ .Values.monitoring.prometheus.config.tokenFileName }}"
bearer_token_file: "{{ .Values.monitoring.prometheus.config.tokenFileDir }}/{{ .Values.monitoring.prometheus.config.tokenFileName }}"
static_configs:
- targets: [ "{{ .Values.streampipes.core.service.name }}:{{ .Values.streampipes.core.service.port }}" ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
imagePullPolicy: "IfNotPresent"
env:
- name: SP_HOST
value: "backend"
value: "{{ .Values.streampipes.core.service.name }}"
- name: SP_PORT
value: "{{ .Values.streampipes.core.service.port }}"
- name: SP_USERNAME
Expand All @@ -60,13 +60,13 @@ spec:
valueFrom:
secretKeyRef:
name: {{ .Values.streampipes.auth.secretName}}
key: sp-encryption-passcode
key: sp-initial-admin-password
- name: PROMETHEUS_HOST
value: "{{ .Values.monitoring.prometheus.service.name }}"
- name: PROMETHEUS_PORT
value: "{{ .Values.monitoring.prometheus.service.port }}"
- name: TOKEN_FILE
value: "{{ .Values.monitoring.prometheus.config.tokenFileDir }}{{ .Values.monitoring.prometheus.config.tokenFileName }}"
value: "{{ .Values.monitoring.prometheus.config.tokenFileDir }}/{{ .Values.monitoring.prometheus.config.tokenFileName }}"
volumeMounts:
- name: shared-token
mountPath: {{ .Values.monitoring.prometheus.config.tokenFileDir }}
Expand Down
2 changes: 1 addition & 1 deletion installer/k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ monitoring:
backendJobName: backend
extensionsName: extensions-all-iiot
tokenFileName: token
tokenFileDir: /opt/data/
tokenFileDir: /opt/data

# monitoring - grafana
grafana:
Expand Down
Loading

0 comments on commit 5ed09fd

Please sign in to comment.