{"meta":{"slug":"pterodactyl-grafana","name":"Pterodactyl Grafana","category":"grafana","source":"pelican","owner":"pelican-eggs","repo":"software","branch":"main","path":"grafana/egg-pterodactyl-grafana.json","rawUrl":"https://raw.githubusercontent.com/pelican-eggs/software/main/grafana/egg-pterodactyl-grafana.json","indexedAt":1792246788483},"egg":{"_comment":"DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO","meta":{"version":"PTDL_v2","update_url":null},"exported_at":"2026-01-03T18:57:06+00:00","name":"Grafana","author":"p.zarrad@outlook.de","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.","features":null,"docker_images":{"Debian":"ghcr.io/pelican-eggs/yolks:debian"},"file_denylist":[],"startup":"./bin/grafana server web","config":{"files":"{\n    \"conf\\/defaults.ini\": {\n        \"parser\": \"ini\",\n        \"find\": {\n            \"server.http_port\": \"{{server.build.default.port}}\"\n        }\n    }\n}","startup":"{\n    \"done\": \"HTTP Server Listen\"\n}","logs":"{}","stop":"^^C"},"scripts":{"installation":{"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# 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 \"-----------------------------------------","container":"ghcr.io/pelican-eggs/installers:debian","entrypoint":"bash"}},"variables":[{"name":"Grafana Plugins","description":"A list of Grafana plugins that should be installed. Enter the plugins comma separated (e. g. a,b,c).","env_variable":"grafana_plugins","default_value":"","user_viewable":true,"user_editable":true,"rules":"nullable|string","field_type":"text"},{"name":"Grafana Version","description":"The version of Grafana to install. By default the latest version is being installed.","env_variable":"GRAFANA_VERSION","default_value":"latest","user_viewable":true,"user_editable":true,"rules":"required|string|max:20","field_type":"text"}]},"readme":"# Grafana\n\n## From the [Grafana](https://github.com/grafana/grafana) GitHub\n\nThe open and composable observability and data visualization platform.\nVisualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.\n\n## Initial credentials\n\nAfter the first start of Grafana, you can login using the following credentials:\n\n- Username: admin\n- Password: admin\n\n## Update support\n\nThe egg _should_ keep the data and conf folder when reinstalling. Therefore a reinstallation with \"latest\" as the selected version can be used to update Grafana.\n\nIf you want to reset the server completly, remove the `conf` and `data` directories manually before reinstalling.\n\n## Server Ports\n\nPorts required to run the server in a table format.\n\n| Port         | default |\n| ------------ | ------- |\n| Webinterface | 3000    |\n"}