Skip to content

Commit

Permalink
Fix Memgraph Datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
camrossi committed Dec 19, 2024
1 parent 244a613 commit 1dc3e65
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
my_lab.yaml
experiments/
local_tests/
req.rest
ndi.rest
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{{- if $.Values.grafana.sidecar.datasources.enabled }}
{{- if $.Values.memgraph.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-memgraph-datasource
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Release.Name }}
chart: {{ template "aci-monitoring-stack.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if $.Values.grafana.sidecar.datasources.label }}
{{ $.Values.grafana.sidecar.datasources.label }}: {{ $.Values.grafana.sidecar.datasources.labelValue | quote }}
{{- else }}
grafana_datasource: "1"
{{- end }}
data:
memgraph-stack-datasource.yaml: |-
apiVersion: 1
datasources:
- name: "memgraph"
type: kniepdennis-neo4j-datasource
access: proxy
url: ""
jsonData: {url: "bolt://{{ $.Release.Name }}-memgraph:{{ $.Values.memgraph.boltPort }}"}
uid: 'memgraph'
version: 2
{{- end }}
{{- end }}
5 changes: 1 addition & 4 deletions charts/aci-monitoring-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ grafana:
enabled: true
defaultDashboardsEnabled: false
sidecar:
# This will load datasorces that are defined as ConfigMaps with the label grafana_datasource
datasources:
name: Prometheus
uid: prometheus
Expand All @@ -132,10 +133,6 @@ grafana:
uid: alertmanager
handleGrafanaManagedAlerts: false
implementation: prometheus
kniepdennis-neo4j-datasource:
enabled: true
name: kniepdennis-neo4j-datasource
uid: memgraph
dashboards:
enabled: true
label: grafana_dashboard
Expand Down
40 changes: 0 additions & 40 deletions deployment.yaml

This file was deleted.

0 comments on commit 1dc3e65

Please sign in to comment.