{"meta":{"slug":"pterodactyl-loki","name":"Pterodactyl Loki","category":"loki","source":"pelican","owner":"pelican-eggs","repo":"monitoring","branch":"main","path":"loki/egg-pterodactyl-loki.json","rawUrl":"https://raw.githubusercontent.com/pelican-eggs/monitoring/main/loki/egg-pterodactyl-loki.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-01T21:07:56+00:00","name":"Loki","author":"unknown@unknown.com","description":"Prometheus but for logs. This egg is for Loki instance only! You usually need pushing agents like\nPromtail to put logs in this","features":null,"docker_images":{"Debian":"ghcr.io/pelican-eggs/yolks:debian"},"file_denylist":[],"startup":"./loki-linux -config.file=loki-docker-config.yaml","config":{"files":"{\n    \"loki-docker-config.yaml\": {\n        \"parser\": \"yaml\",\n        \"find\": {\n            \"server.http_listen_port\": \"{{server.build.default.port}}\",\n            \"common.ring.instance_addr\": \"0.0.0.0\",\n            \"common.path_prefix\": \"\\/home\\/container\\/loki\",\n            \"common.storage.filesystem.chunks_directory\": \"\\/home\\/container\\/loki\\/chunks\",\n            \"common.storage.filesystem.rules_directory\": \"\\/home\\/container\\/loki\\/rules\"\n        }\n    }\n}","startup":"{\n    \"done\": \"Loki started\"\n}","logs":"[]","stop":"^C"},"scripts":{"installation":{"script":"#!/bin/bash\n# Switch to mounted working install directory\ncd /mnt/server\n\napt update\napt install -y file\nARCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"amd64\" || echo \"arm64\")\n# Download and extract Loki\n\nif [ \"$LOKI_VERSION\" = \"latest\" ]; then LOKI_VERSION=$(curl --silent \"https://api.github.com/repos/grafana/loki/releases/latest\" | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\\1/' | cut -c2-); fi\necho -e \"running curl -L https://github.com/grafana/loki/releases/download/v${LOKI_VERSION}/loki-linux-${ARCH}.zip --output loki-linux-amd64.zip\"\ncurl -L https://github.com/grafana/loki/releases/download/v${LOKI_VERSION}/loki-linux-${ARCH}.zip --output loki-linux-${ARCH}.zip\nunzip loki-linux-${ARCH}.zip\nrm -rf loki-linux-${ARCH}.zip\ncurl -L https://raw.githubusercontent.com/grafana/loki/v${LOKI_VERSION}/cmd/loki/loki-docker-config.yaml --output loki-docker-config.yaml\nmv loki-linux-* loki-linux\necho -e \"installation completed\"","container":"ghcr.io/pelican-eggs/installers:debian","entrypoint":"bash"}},"variables":[{"name":"Loki Version","description":"The version of Loki to use.\r\n\r\nFind all versions from https://github.com/grafana/loki","env_variable":"LOKI_VERSION","default_value":"latest","user_viewable":true,"user_editable":true,"rules":"required|string|max:20","field_type":"text"}]},"readme":"# Loki\n\n## From the [Loki](https://github.com/grafana/loki) GitHub repository\n\nLoki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost effective and easy to operate.\n\n## Working with Loki\n\nTo get logs \"into\" Loki you need a scrape agent, such as official [Promtail](https://grafana.com/docs/loki/latest/clients/promtail/installation/) or a library for your app that can push logs through HTTP endpoint (gRPC endpoint is disabled in Docker enviroment by default)\n\n## Resource consumption\n\nAs this egg sets up Loki in single node mode, it can consume a lot of disk space really fast. It is possible to setup different kind of storages for different parts of Loki files. For further information refer to official [Loki documentation](https://grafana.com/docs/loki/latest/operations/storage/).\n\nTo get started, you can go with a minimum of 3GB RAM and >=2.5GB disk space.\n\nKeep in mind that those numbers can grow pretty quick!\n\n## Server Ports\n\nPorts required to run the server in a table format.\n\n| Port        | default |\n|-------------|---------|\n| Loki server | 3100    |\n"}