mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-24 22:07:23 +01:00
Automatic update Grafana datasource docs from VictoriaMetrics/victorialogs-datasource@0c2f8ef (#6592)
This commit is contained in:
parent
c14e827cc5
commit
5275b36380
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
weight: 9
|
weight: 9
|
||||||
title: VictoriaLogs datasource for Grafana
|
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:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: victorialogs
|
parent: victorialogs
|
||||||
@ -135,9 +135,9 @@ extraInitContainers:
|
|||||||
set -ex
|
set -ex
|
||||||
mkdir -p /var/lib/grafana/plugins/
|
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)
|
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
|
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/plugin.tar.gz -C /var/lib/grafana/plugins/
|
tar -xf /var/lib/grafana/plugins/vl-plugin.tar.gz -C /var/lib/grafana/plugins/
|
||||||
rm /var/lib/grafana/plugins/plugin.tar.gz
|
rm /var/lib/grafana/plugins/vl-plugin.tar.gz
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
# For grafana-operator users, change `name: storage` to `name: grafana-data`
|
# For grafana-operator users, change `name: storage` to `name: grafana-data`
|
||||||
- name: storage
|
- name: storage
|
||||||
@ -186,18 +186,18 @@ spec:
|
|||||||
command: [ "/bin/sh" ]
|
command: [ "/bin/sh" ]
|
||||||
workingDir: "/var/lib/grafana"
|
workingDir: "/var/lib/grafana"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 10001
|
runAsUser: 472
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsGroup: 10001
|
runAsGroup: 472
|
||||||
args:
|
args:
|
||||||
- "-c"
|
- "-c"
|
||||||
- |
|
- |
|
||||||
set -ex
|
set -ex
|
||||||
mkdir -p /var/lib/grafana/plugins/
|
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)
|
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
|
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/plugin.tar.gz -C /var/lib/grafana/plugins/
|
tar -xf /var/lib/grafana/plugins/vl-plugin.tar.gz -C /var/lib/grafana/plugins/
|
||||||
rm /var/lib/grafana/plugins/plugin.tar.gz
|
rm /var/lib/grafana/plugins/vl-plugin.tar.gz
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: grafana-data
|
- name: grafana-data
|
||||||
mountPath: /var/lib/grafana
|
mountPath: /var/lib/grafana
|
||||||
@ -215,9 +215,9 @@ This example uses init container to download and install plugin.
|
|||||||
|
|
||||||
``` bash
|
``` 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)
|
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
|
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/plugin.tar.gz -C /var/lib/grafana/plugins/
|
tar -xf /var/lib/grafana/plugins/vl-plugin.tar.gz -C /var/lib/grafana/plugins/
|
||||||
rm /var/lib/grafana/plugins/plugin.tar.gz
|
rm /var/lib/grafana/plugins/vl-plugin.tar.gz
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Restart Grafana
|
1. Restart Grafana
|
||||||
|
Loading…
Reference in New Issue
Block a user