You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wa...@apache.org on 2023/09/12 13:19:01 UTC
[skywalking-showcase] 01/01: update grafana install
This is an automated email from the ASF dual-hosted git repository.
wankai pushed a commit to branch grafana-plugin
in repository https://gitbox.apache.org/repos/asf/skywalking-showcase.git
commit d34a81ee691c0323de18900cdce0fee85acb6384
Author: wankai123 <wa...@foxmail.com>
AuthorDate: Tue Sep 12 21:18:31 2023 +0800
update grafana install
---
Makefile.in | 2 +-
deploy/platform/docker/docker-compose.grafana.yaml | 4 +---
deploy/platform/kubernetes/Makefile | 2 +-
deploy/platform/kubernetes/templates/feature-grafana/resources.yaml | 4 +---
4 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index e18736d..2b119f2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -50,7 +50,7 @@ SW_ROVER_IMAGE ?= ghcr.io/apache/skywalking-rover/skywalking-rover:9da447851549b
SWCK_OPERATOR_IMAGE ?= docker.io/apache/skywalking-swck
SWCK_OPERATOR_IMAGE_TAG ?= v0.7.0
-SW_PLUGIN_URL ?= https://github.com/apache/skywalking-grafana-plugins/releases/download/v0.1.0/apache-skywalking-datasource-0.1.0.zip
+SW_GRAFANA_PLUGIN_VERSION ?= 0.1.0
GRAFANA_IMAGE ?= grafana/grafana:9.5.2
OTEL_COLLECTOR_IMAGE ?= otel/opentelemetry-collector
diff --git a/deploy/platform/docker/docker-compose.grafana.yaml b/deploy/platform/docker/docker-compose.grafana.yaml
index 795a619..b71a506 100644
--- a/deploy/platform/docker/docker-compose.grafana.yaml
+++ b/deploy/platform/docker/docker-compose.grafana.yaml
@@ -21,9 +21,7 @@ services:
grafana:
image: ${GRAFANA_IMAGE}
environment:
- # Notice: `development` mode only used for develop plugin, please change to `production` mode in production environment
- - GF_DEFAULT_APP_MODE=development
- - GF_INSTALL_PLUGINS=${SW_PLUGIN_URL};apache-skywalking-datasource
+ - GF_INSTALL_PLUGINS=apache-skywalking-datasource ${SW_GRAFANA_PLUGIN_VERSION}
networks: [ sw ]
volumes:
- ./config/grafana/grafana.ini:/etc/grafana/grafana.ini
diff --git a/deploy/platform/kubernetes/Makefile b/deploy/platform/kubernetes/Makefile
index 5853b98..1363c11 100644
--- a/deploy/platform/kubernetes/Makefile
+++ b/deploy/platform/kubernetes/Makefile
@@ -38,7 +38,7 @@ HELM_OPTIONS := $(HELM_OPTIONS) --set features.event.exporter.image=$(SW_EVENT_E
HELM_OPTIONS := $(HELM_OPTIONS) --set features.javaAgentInjector.agentImage=$(SW_AGENT_JAVA_IMAGE)
HELM_OPTIONS := $(HELM_OPTIONS) --set features.rover.image=$(SW_ROVER_IMAGE)
HELM_OPTIONS := $(HELM_OPTIONS) --set features.grafana.image=$(GRAFANA_IMAGE)
-HELM_OPTIONS := $(HELM_OPTIONS) --set skywalking.plugin.url=$(SW_PLUGIN_URL)
+HELM_OPTIONS := $(HELM_OPTIONS) --set skywalking.grafana.plugin.version=$(SW_GRAFANA_PLUGIN_VERSION)
ifeq ($(DEBUG),true)
HELM_OPTIONS := $(HELM_OPTIONS) --dry-run --debug
diff --git a/deploy/platform/kubernetes/templates/feature-grafana/resources.yaml b/deploy/platform/kubernetes/templates/feature-grafana/resources.yaml
index 43f1efa..f881e2a 100644
--- a/deploy/platform/kubernetes/templates/feature-grafana/resources.yaml
+++ b/deploy/platform/kubernetes/templates/feature-grafana/resources.yaml
@@ -25,8 +25,6 @@ metadata:
name: grafana-config
data:
grafana.ini: |
- # Notice: `development` mode only used for develop plugin, please change to `production` mode in production environment
- app_mode = development
[security]
disable_initial_admin_creation = true
[auth.anonymous]
@@ -106,7 +104,7 @@ spec:
imagePullPolicy: IfNotPresent
env:
- name: GF_INSTALL_PLUGINS
- value: {{ .Values.skywalking.plugin.url }};apache-skywalking-datasource
+ value: apache-skywalking-datasource {{ .Values.skywalking.grafana.plugin.version }}
ports:
- name: http-grafana
containerPort: 3000