From 67a7cf37c2da6430b923a1913b2a5c4e21a419cd Mon Sep 17 00:00:00 2001 From: Github Actions <133988544+victoriametrics-bot@users.noreply.github.com> Date: Fri, 5 Jul 2024 21:09:37 +0800 Subject: [PATCH] Automatic update Grafana datasource docs from VictoriaMetrics/victorialogs-datasource@0c2f8ef (#6592) (cherry picked from commit 5275b3638091c76e8c4cafb09efa171d699c4573) --- docs/VictoriaLogs/victorialogs-datasource.md | 24 ++++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/VictoriaLogs/victorialogs-datasource.md b/docs/VictoriaLogs/victorialogs-datasource.md index beccd1627f..27d15cf6b8 100644 --- a/docs/VictoriaLogs/victorialogs-datasource.md +++ b/docs/VictoriaLogs/victorialogs-datasource.md @@ -1,7 +1,7 @@ --- weight: 9 title: VictoriaLogs datasource for Grafana -source: https://github.com/VictoriaMetrics/victorialogs-datasource/blob/main/README.md +editLink: https://github.com/VictoriaMetrics/victorialogs-datasource/blob/main/README.md menu: docs: parent: victorialogs @@ -135,9 +135,9 @@ extraInitContainers: set -ex mkdir -p /var/lib/grafana/plugins/ ver=$(curl -s https://api.github.com/repos/VictoriaMetrics/victorialogs-datasource/releases/latest | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1) - curl -L https://github.com/VictoriaMetrics/victorialogs-datasource/releases/download/$ver/victorialogs-datasource-$ver.tar.gz -o /var/lib/grafana/plugins/plugin.tar.gz - tar -xf /var/lib/grafana/plugins/plugin.tar.gz -C /var/lib/grafana/plugins/ - rm /var/lib/grafana/plugins/plugin.tar.gz + curl -L https://github.com/VictoriaMetrics/victorialogs-datasource/releases/download/$ver/victorialogs-datasource-$ver.tar.gz -o /var/lib/grafana/plugins/vl-plugin.tar.gz + tar -xf /var/lib/grafana/plugins/vl-plugin.tar.gz -C /var/lib/grafana/plugins/ + rm /var/lib/grafana/plugins/vl-plugin.tar.gz volumeMounts: # For grafana-operator users, change `name: storage` to `name: grafana-data` - name: storage @@ -186,18 +186,18 @@ spec: command: [ "/bin/sh" ] workingDir: "/var/lib/grafana" securityContext: - runAsUser: 10001 + runAsUser: 472 runAsNonRoot: true - runAsGroup: 10001 + runAsGroup: 472 args: - "-c" - | set -ex mkdir -p /var/lib/grafana/plugins/ ver=$(curl -s https://api.github.com/repos/VictoriaMetrics/victorialogs-datasource/releases/latest | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1) - curl -L https://github.com/VictoriaMetrics/victorialogs-datasource/releases/download/$ver/victorialogs-datasource-$ver.tar.gz -o /var/lib/grafana/plugins/plugin.tar.gz - tar -xf /var/lib/grafana/plugins/plugin.tar.gz -C /var/lib/grafana/plugins/ - rm /var/lib/grafana/plugins/plugin.tar.gz + curl -L https://github.com/VictoriaMetrics/victorialogs-datasource/releases/download/$ver/victorialogs-datasource-$ver.tar.gz -o /var/lib/grafana/plugins/vl-plugin.tar.gz + tar -xf /var/lib/grafana/plugins/vl-plugin.tar.gz -C /var/lib/grafana/plugins/ + rm /var/lib/grafana/plugins/vl-plugin.tar.gz volumeMounts: - name: grafana-data mountPath: /var/lib/grafana @@ -215,9 +215,9 @@ This example uses init container to download and install plugin. ``` bash ver=$(curl -s https://api.github.com/repos/VictoriaMetrics/victorialogs-datasource/releases/latest | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1) - curl -L https://github.com/VictoriaMetrics/victorialogs-datasource/releases/download/$ver/victorialogs-datasource-$ver.tar.gz -o /var/lib/grafana/plugins/plugin.tar.gz - tar -xf /var/lib/grafana/plugins/plugin.tar.gz -C /var/lib/grafana/plugins/ - rm /var/lib/grafana/plugins/plugin.tar.gz + curl -L https://github.com/VictoriaMetrics/victorialogs-datasource/releases/download/$ver/victorialogs-datasource-$ver.tar.gz -o /var/lib/grafana/plugins/vl-plugin.tar.gz + tar -xf /var/lib/grafana/plugins/vl-plugin.tar.gz -C /var/lib/grafana/plugins/ + rm /var/lib/grafana/plugins/vl-plugin.tar.gz ``` 1. Restart Grafana