|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 49 行未改动
|
|
4
|
|
"version": "PTDL_v2",
|
|
5
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/7/download/egg-grafana.json"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-06-02T14:41:00+00:00",
|
|
8
|
|
"name": "Grafana",
|
|
9
|
|
"author": "p.zarrad@outlook.de",
|
|
10
|
|
"uuid": "096dad58-a667-4620-a86b-db361e6fb8c4",
|
|
11
|
|
"description": "The open and composable observability and data visualization platform.\r\nVisualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.",
|
|
12
|
|
"features": null,
|
|
13
|
|
"docker_images": {
|
|
14
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian"
|
|
15
|
|
},
|
|
16
|
|
"file_denylist": [],
|
|
17
|
|
"startup": "./bin/grafana server web",
|
|
18
|
|
"config": {
|
|
19
|
|
"files": "{\r\n \"conf/defaults.ini\": {\r\n \"parser\": \"ini\",\r\n \"find\": {\r\n \"server.http_port\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}",
|
|
20
|
|
"startup": "{\r\n \"done\": \"HTTP Server Listen\"\r\n}",
|
|
21
|
|
"logs": "{}",
|
|
22
|
|
"stop": "^^C"
|
|
23
|
|
},
|
|
24
|
|
"scripts": {
|
|
25
|
|
"installation": {
|
|
26
|
|
"script": "#!/bin/bash\r\nshopt -s extglob\r\n\r\n# Switch to mounted directory\r\nmkdir -p /mnt/server\r\ncd /mnt/server\r\n\r\n# Update installation system and install curl\r\napt-get update\r\napt-get install -y curl\r\n\r\n# Cleanup previous install if available\r\nif [ -d \"conf\" ]; then mv conf conf.bak; fi\r\nrm -rfv !(conf.bak|data)\r\n\r\n# Download and extract Grafana\r\nARCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"amd64\" || echo \"arm64\")\r\n\r\nversion=${GRAFANA_VERSION}\r\nif [ \"$version\" = \"latest\" ]; then version=$(curl --silent \"https://api.github.com/repos/grafana/grafana/releases/latest\" | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\\1/' | cut -c2-); fi\r\ncurl https://dl.grafana.com/oss/release/grafana-${version}.linux-${ARCH}.tar.gz --output grafana.tar.gz\r\ntar -zxvf grafana.tar.gz\r\nmv -n grafana-*/* ./\r\nrm -rf grafana.tar.gz grafana-*/\r\n\r\n# Restore configuration if necessary\r\nif [ -d \"conf.bak\" ]; then rm -rf conf && mv conf.bak conf && rm -rf conf.bak; fi\r\n\r\n# Update existing plugins and install Grafana plugins\r\nif [ ! -z \"${GRAFANA_PLUGINS}\" ]; then\r\nfor v in $(tr ',' '\\n' <<< \"${GRAFANA_PLUGINS}\") ; do ./bin/grafana-cli --pluginsDir=\"/mnt/server/data/plugins\" plugins install \"$v\" ; done\r\nfi\r\n\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------",
|
|
27
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
28
|
|
"entrypoint": "bash"
|
|
29
|
|
}
|
|
30
|
|
},
|
|
31
|
|
"variables": [
|
|
32
|
|
{
|
|
33
|
|
"name": "Grafana Version",
|
|
34
|
|
"description": "The version of Grafana to install. By default the latest version is being installed.",
|
|
35
|
|
"env_variable": "GRAFANA_VERSION",
|
|
36
|
|
"default_value": "latest",
|
|
37
|
|
"user_viewable": true,
|
|
38
|
|
"user_editable": true,
|
|
39
|
|
"rules": "required|string|max:20",
|
|
40
|
|
"sort": null,
|
|
41
|
|
"field_type": "text"
|
|
42
|
|
},
|
|
43
|
|
{
|
|
44
|
|
"name": "Grafana Plugins",
|
|
45
|
|
"description": "A list of Grafana plugins that should be installed. Enter the plugins comma separated (e. g. a,b,c).",
|
|
46
|
|
"env_variable": "grafana_plugins",
|
|
47
|
|
"default_value": "",
|
|
48
|
|
"user_viewable": true,
|
|
49
|
|
"user_editable": true,
|
|
50
|
|
"rules": "nullable|string",
|
|
51
|
|
"sort": null,
|
|
52
|
|
"field_type": "text"
|
|
53
|
|
}
|
|
54
|
|
]
|
|
55
|
|
}
|