diff --git a/docs/VictoriaLogs/victorialogs-datasource.md b/docs/VictoriaLogs/victorialogs-datasource.md index beccd1627..27d15cf6b 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