{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8deb4f1e-e7f2-4a4e-a5b7-1d2e80317e1f",
    "slug": "grafana-13-lgtm-observability-stack",
    "name": "Grafana 13 LGTM Observability Stack",
    "description": "Logs, metrics and traces with Grafana, Loki, Tempo and Prometheus.",
    "url": "https://railway.com/deploy/grafana-13-lgtm-observability-stack",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/grafana-lgtm-railway"
    }
  },
  "services": [
    {
      "name": "tempo",
      "source": {
        "repo": "https://github.com/baranberkay96/grafana-lgtm-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/tempo",
      "http": false
    },
    {
      "name": "alloy",
      "source": {
        "repo": "https://github.com/baranberkay96/grafana-lgtm-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "loki",
      "source": {
        "repo": "https://github.com/baranberkay96/grafana-lgtm-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/loki",
      "http": false
    },
    {
      "name": "prometheus",
      "source": {
        "repo": "https://github.com/baranberkay96/grafana-lgtm-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/prometheus",
      "http": false
    },
    {
      "name": "grafana",
      "source": {
        "repo": "https://github.com/baranberkay96/grafana-lgtm-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/grafana",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "tempo",
      "description": "Tempo HTTP port; /ready is the healthcheck.",
      "secret": false,
      "strategy": "default",
      "default": "3200"
    },
    {
      "key": "S3_BUCKET",
      "service": "tempo",
      "description": "Bucket name of TempoBucket (reference).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "tempo",
      "description": "Region of the TempoBucket bucket (reference).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "tempo",
      "description": "S3 endpoint of the TempoBucket Railway Bucket (reference).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "tempo",
      "description": "Run as root so the process can write to the Railway volume (the image's default user cannot).",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "TEMPO_LOG_LEVEL",
      "service": "tempo",
      "description": "Tempo log level.",
      "secret": false,
      "strategy": "default",
      "default": "warn"
    },
    {
      "key": "TEMPO_RETENTION",
      "service": "tempo",
      "description": "Delete traces older than this (14 days).",
      "secret": false,
      "strategy": "default",
      "default": "336h"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "tempo",
      "description": "Access key of TempoBucket (reference).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "tempo",
      "description": "Secret key of TempoBucket (reference).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PROMETHEUS_REMOTE_WRITE_URL",
      "service": "tempo",
      "description": "Where the metrics-generator writes span and service-graph metrics.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "alloy",
      "description": "Alloy HTTP server (UI, metrics, /-/ready healthcheck); private only.",
      "secret": false,
      "strategy": "default",
      "default": "12345"
    },
    {
      "key": "OTLP_PUBLIC_TOKEN",
      "service": "alloy",
      "description": "Bearer token required on the public OTLP endpoint.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ALLOY_MEMORY_LIMIT",
      "service": "alloy",
      "description": "Alloy refuses new data above this memory use (memory_limiter).",
      "secret": false,
      "strategy": "default",
      "default": "1GiB"
    },
    {
      "key": "LOKI_OTLP_ENDPOINT",
      "service": "alloy",
      "description": "Loki OTLP endpoint (logs).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OTLP_PUBLIC_ENDPOINT",
      "service": "alloy",
      "description": "OTLP/HTTP endpoint for apps outside Railway (send the bearer token).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TEMPO_OTLP_GRPC_ENDPOINT",
      "service": "alloy",
      "description": "Tempo OTLP gRPC receiver (traces).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OTEL_EXPORTER_OTLP_ENDPOINT",
      "service": "alloy",
      "description": "OTLP/HTTP endpoint for services in this project; reference it as ${{alloy.OTEL_EXPORTER_OTLP_ENDPOINT}}.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PROMETHEUS_REMOTE_WRITE_URL",
      "service": "alloy",
      "description": "Prometheus remote-write receiver (metrics).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "loki",
      "description": "Loki HTTP port; /ready is the healthcheck.",
      "secret": false,
      "strategy": "default",
      "default": "3100"
    },
    {
      "key": "S3_BUCKET",
      "service": "loki",
      "description": "Bucket name of LokiBucket (reference).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "loki",
      "description": "Region of the LokiBucket bucket (reference).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "loki",
      "description": "S3 endpoint of the LokiBucket Railway Bucket (reference).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LOKI_PUSH_URL",
      "service": "loki",
      "description": "Loki push API for log shippers in this project; reference it as ${{loki.LOKI_PUSH_URL}}.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LOKI_LOG_LEVEL",
      "service": "loki",
      "description": "Loki log level.",
      "secret": false,
      "strategy": "default",
      "default": "warn"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "loki",
      "description": "Run as root so the process can write to the Railway volume (the image's default user cannot).",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "loki",
      "description": "Access key of LokiBucket (reference).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "loki",
      "description": "Secret key of LokiBucket (reference).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LOKI_RETENTION_PERIOD",
      "service": "loki",
      "description": "Delete logs older than this (31 days).",
      "secret": false,
      "strategy": "default",
      "default": "744h"
    },
    {
      "key": "LOKI_INGESTION_RATE_MB",
      "service": "loki",
      "description": "Per-tenant ingestion rate limit (MB/s).",
      "secret": false,
      "strategy": "default",
      "default": "16"
    },
    {
      "key": "LOKI_INGESTION_BURST_MB",
      "service": "loki",
      "description": "Per-tenant ingestion burst (MB).",
      "secret": false,
      "strategy": "default",
      "default": "32"
    },
    {
      "key": "PORT",
      "service": "prometheus",
      "description": "Prometheus HTTP port; /-/ready is the healthcheck.",
      "secret": false,
      "strategy": "default",
      "default": "9090"
    },
    {
      "key": "LOKI_HOST",
      "service": "prometheus",
      "description": "Loki private host (scraped).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ALLOY_HOST",
      "service": "prometheus",
      "description": "Alloy private host (scraped).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPO_HOST",
      "service": "prometheus",
      "description": "Tempo private host (scraped).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GRAFANA_HOST",
      "service": "prometheus",
      "description": "Grafana private host (scraped).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "prometheus",
      "description": "Run as root so the process can write to the Railway volume (the image's default user cannot).",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SCRAPE_INTERVAL",
      "service": "prometheus",
      "description": "Scrape and rule evaluation interval.",
      "secret": false,
      "strategy": "default",
      "default": "15s"
    },
    {
      "key": "PROMETHEUS_RETENTION_SIZE",
      "service": "prometheus",
      "description": "Cap the TSDB size on the volume (oldest blocks go first).",
      "secret": false,
      "strategy": "default",
      "default": "4GB"
    },
    {
      "key": "PROMETHEUS_RETENTION_TIME",
      "service": "prometheus",
      "description": "Delete samples older than this.",
      "secret": false,
      "strategy": "default",
      "default": "15d"
    },
    {
      "key": "PROMETHEUS_REMOTE_WRITE_URL",
      "service": "prometheus",
      "description": "Remote-write URL for other services; reference it as ${{prometheus.PROMETHEUS_REMOTE_WRITE_URL}}.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "grafana",
      "description": "Grafana HTTP port; /api/health is the healthcheck.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "LOKI_URL",
      "service": "grafana",
      "description": "Loki datasource URL (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPO_URL",
      "service": "grafana",
      "description": "Tempo datasource URL (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PROMETHEUS_URL",
      "service": "grafana",
      "description": "Prometheus datasource URL (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GF_DATABASE_WAL",
      "service": "grafana",
      "description": "SQLite write-ahead logging for fewer lock errors.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "grafana",
      "description": "Run as root so the process can write to the Railway volume (the image's default user cannot).",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "GF_SERVER_ROOT_URL",
      "service": "grafana",
      "description": "Public URL used in links and redirects.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "GF_SECURITY_ADMIN_USER",
      "service": "grafana",
      "description": "Admin login, created on first start.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "GF_USERS_ALLOW_SIGN_UP",
      "service": "grafana",
      "description": "No self sign-up; invite users from Administration.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "GF_DEFAULT_INSTANCE_NAME",
      "service": "grafana",
      "description": "Instance name shown in Grafana.",
      "secret": false,
      "strategy": "default",
      "default": "Grafana on Railway"
    },
    {
      "key": "GF_SECURITY_COOKIE_SECURE",
      "service": "grafana",
      "description": "Session cookies only over HTTPS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "GF_SECURITY_ADMIN_PASSWORD",
      "service": "grafana",
      "description": "Admin password, applied on first start only (change it later in Grafana).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GF_ANALYTICS_REPORTING_ENABLED",
      "service": "grafana",
      "description": "Do not send usage statistics to Grafana Labs.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "grafana-13-lgtm-observability-stack"
      }
    },
    "cli": "railway deploy --template grafana-13-lgtm-observability-stack",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8deb4f1e-e7f2-4a4e-a5b7-1d2e80317e1f",
            "serializedConfig": {
              "buckets": {
                "143b8714-026c-5ca2-8540-895214c990e1": {
                  "name": "LokiBucket"
                },
                "5680a774-5c9e-5433-9e61-77cd9261d98d": {
                  "name": "TempoBucket"
                }
              },
              "services": {
                "1157ee11-15f6-5b77-adbf-5a86557ac99f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/tempo.svg",
                  "name": "tempo",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/ready",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/grafana-lgtm-railway",
                    "branch": "main",
                    "rootDirectory": "/services/tempo"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Tempo HTTP port; /ready is the healthcheck.",
                      "defaultValue": "3200"
                    },
                    "S3_BUCKET": {
                      "isOptional": true,
                      "description": "Bucket name of TempoBucket (reference).",
                      "defaultValue": "${{TempoBucket.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": true,
                      "description": "Region of the TempoBucket bucket (reference).",
                      "defaultValue": "${{TempoBucket.REGION}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": true,
                      "description": "S3 endpoint of the TempoBucket Railway Bucket (reference).",
                      "defaultValue": "${{TempoBucket.ENDPOINT}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": true,
                      "description": "Run as root so the process can write to the Railway volume (the image's default user cannot).",
                      "defaultValue": "0"
                    },
                    "TEMPO_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Tempo log level.",
                      "defaultValue": "warn"
                    },
                    "TEMPO_RETENTION": {
                      "isOptional": true,
                      "description": "Delete traces older than this (14 days).",
                      "defaultValue": "336h"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Access key of TempoBucket (reference).",
                      "defaultValue": "${{TempoBucket.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Secret key of TempoBucket (reference).",
                      "defaultValue": "${{TempoBucket.SECRET_ACCESS_KEY}}"
                    },
                    "PROMETHEUS_REMOTE_WRITE_URL": {
                      "isOptional": true,
                      "description": "Where the metrics-generator writes span and service-graph metrics.",
                      "defaultValue": "http://${{prometheus.RAILWAY_PRIVATE_DOMAIN}}:9090/api/v1/write"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "32735857-4ca1-5426-8ab8-84fad9102cf3": {
                      "mountPath": "/var/tempo"
                    }
                  }
                },
                "26dc7bce-402b-5116-bcea-7049edb59095": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/alloy.svg",
                  "name": "alloy",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/-/ready",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 300
                  },
                  "source": {
                    "repo": "baranberkay96/grafana-lgtm-railway",
                    "branch": "main",
                    "rootDirectory": "/services/alloy"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Alloy HTTP server (UI, metrics, /-/ready healthcheck); private only.",
                      "defaultValue": "12345"
                    },
                    "OTLP_PUBLIC_TOKEN": {
                      "isOptional": true,
                      "description": "Bearer token required on the public OTLP endpoint.",
                      "defaultValue": "{{OTLP_PUBLIC_TOKEN}}"
                    },
                    "ALLOY_MEMORY_LIMIT": {
                      "isOptional": true,
                      "description": "Alloy refuses new data above this memory use (memory_limiter).",
                      "defaultValue": "1GiB"
                    },
                    "LOKI_OTLP_ENDPOINT": {
                      "isOptional": true,
                      "description": "Loki OTLP endpoint (logs).",
                      "defaultValue": "http://${{loki.RAILWAY_PRIVATE_DOMAIN}}:3100/otlp"
                    },
                    "OTLP_PUBLIC_ENDPOINT": {
                      "isOptional": true,
                      "description": "OTLP/HTTP endpoint for apps outside Railway (send the bearer token).",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TEMPO_OTLP_GRPC_ENDPOINT": {
                      "isOptional": true,
                      "description": "Tempo OTLP gRPC receiver (traces).",
                      "defaultValue": "${{tempo.RAILWAY_PRIVATE_DOMAIN}}:4317"
                    },
                    "OTEL_EXPORTER_OTLP_ENDPOINT": {
                      "isOptional": true,
                      "description": "OTLP/HTTP endpoint for services in this project; reference it as ${{alloy.OTEL_EXPORTER_OTLP_ENDPOINT}}.",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:4318"
                    },
                    "PROMETHEUS_REMOTE_WRITE_URL": {
                      "isOptional": true,
                      "description": "Prometheus remote-write receiver (metrics).",
                      "defaultValue": "http://${{prometheus.RAILWAY_PRIVATE_DOMAIN}}:9090/api/v1/write"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:4320": {
                        "port": 4320
                      }
                    }
                  }
                },
                "4723e65b-df2f-5b5c-ac80-94c9463f0f0f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/loki.svg",
                  "name": "loki",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/ready",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/grafana-lgtm-railway",
                    "branch": "main",
                    "rootDirectory": "/services/loki"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Loki HTTP port; /ready is the healthcheck.",
                      "defaultValue": "3100"
                    },
                    "S3_BUCKET": {
                      "isOptional": true,
                      "description": "Bucket name of LokiBucket (reference).",
                      "defaultValue": "${{LokiBucket.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": true,
                      "description": "Region of the LokiBucket bucket (reference).",
                      "defaultValue": "${{LokiBucket.REGION}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": true,
                      "description": "S3 endpoint of the LokiBucket Railway Bucket (reference).",
                      "defaultValue": "${{LokiBucket.ENDPOINT}}"
                    },
                    "LOKI_PUSH_URL": {
                      "isOptional": true,
                      "description": "Loki push API for log shippers in this project; reference it as ${{loki.LOKI_PUSH_URL}}.",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:3100/loki/api/v1/push"
                    },
                    "LOKI_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Loki log level.",
                      "defaultValue": "warn"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": true,
                      "description": "Run as root so the process can write to the Railway volume (the image's default user cannot).",
                      "defaultValue": "0"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Access key of LokiBucket (reference).",
                      "defaultValue": "${{LokiBucket.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Secret key of LokiBucket (reference).",
                      "defaultValue": "${{LokiBucket.SECRET_ACCESS_KEY}}"
                    },
                    "LOKI_RETENTION_PERIOD": {
                      "isOptional": true,
                      "description": "Delete logs older than this (31 days).",
                      "defaultValue": "744h"
                    },
                    "LOKI_INGESTION_RATE_MB": {
                      "isOptional": true,
                      "description": "Per-tenant ingestion rate limit (MB/s).",
                      "defaultValue": "16"
                    },
                    "LOKI_INGESTION_BURST_MB": {
                      "isOptional": true,
                      "description": "Per-tenant ingestion burst (MB).",
                      "defaultValue": "32"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "03144607-8889-52c4-8d3e-9785cf8f00fc": {
                      "mountPath": "/loki"
                    }
                  }
                },
                "856a7bc5-1202-5a40-a22f-a9c14d9a9704": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/prometheus.svg",
                  "name": "prometheus",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/-/ready",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/grafana-lgtm-railway",
                    "branch": "main",
                    "rootDirectory": "/services/prometheus"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Prometheus HTTP port; /-/ready is the healthcheck.",
                      "defaultValue": "9090"
                    },
                    "LOKI_HOST": {
                      "isOptional": true,
                      "description": "Loki private host (scraped).",
                      "defaultValue": "${{loki.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ALLOY_HOST": {
                      "isOptional": true,
                      "description": "Alloy private host (scraped).",
                      "defaultValue": "${{alloy.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "TEMPO_HOST": {
                      "isOptional": true,
                      "description": "Tempo private host (scraped).",
                      "defaultValue": "${{tempo.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "GRAFANA_HOST": {
                      "isOptional": true,
                      "description": "Grafana private host (scraped).",
                      "defaultValue": "${{grafana.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": true,
                      "description": "Run as root so the process can write to the Railway volume (the image's default user cannot).",
                      "defaultValue": "0"
                    },
                    "SCRAPE_INTERVAL": {
                      "isOptional": true,
                      "description": "Scrape and rule evaluation interval.",
                      "defaultValue": "15s"
                    },
                    "EXTRA_SCRAPE_TARGETS": {
                      "isOptional": true,
                      "description": "Optional comma-separated host:port list of your services exposing /metrics, e.g. ${{api.RAILWAY_PRIVATE_DOMAIN}}:8080.",
                      "defaultValue": ""
                    },
                    "PROMETHEUS_RETENTION_SIZE": {
                      "isOptional": true,
                      "description": "Cap the TSDB size on the volume (oldest blocks go first).",
                      "defaultValue": "4GB"
                    },
                    "PROMETHEUS_RETENTION_TIME": {
                      "isOptional": true,
                      "description": "Delete samples older than this.",
                      "defaultValue": "15d"
                    },
                    "PROMETHEUS_REMOTE_WRITE_URL": {
                      "isOptional": true,
                      "description": "Remote-write URL for other services; reference it as ${{prometheus.PROMETHEUS_REMOTE_WRITE_URL}}.",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:9090/api/v1/write"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "24401e9f-31d9-57ea-a450-42cace0c697a": {
                      "mountPath": "/prometheus"
                    }
                  }
                },
                "fc23fd3c-507e-5e74-9a2c-7e1b3caadff4": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/grafana.svg",
                  "name": "grafana",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 300
                  },
                  "source": {
                    "repo": "baranberkay96/grafana-lgtm-railway",
                    "branch": "main",
                    "rootDirectory": "/services/grafana"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Grafana HTTP port; /api/health is the healthcheck.",
                      "defaultValue": "3000"
                    },
                    "LOKI_URL": {
                      "isOptional": true,
                      "description": "Loki datasource URL (private network).",
                      "defaultValue": "http://${{loki.RAILWAY_PRIVATE_DOMAIN}}:3100"
                    },
                    "TEMPO_URL": {
                      "isOptional": true,
                      "description": "Tempo datasource URL (private network).",
                      "defaultValue": "http://${{tempo.RAILWAY_PRIVATE_DOMAIN}}:3200"
                    },
                    "PROMETHEUS_URL": {
                      "isOptional": true,
                      "description": "Prometheus datasource URL (private network).",
                      "defaultValue": "http://${{prometheus.RAILWAY_PRIVATE_DOMAIN}}:9090"
                    },
                    "GF_DATABASE_WAL": {
                      "isOptional": true,
                      "description": "SQLite write-ahead logging for fewer lock errors.",
                      "defaultValue": "true"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": true,
                      "description": "Run as root so the process can write to the Railway volume (the image's default user cannot).",
                      "defaultValue": "0"
                    },
                    "GF_SERVER_ROOT_URL": {
                      "isOptional": true,
                      "description": "Public URL used in links and redirects.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "GF_SECURITY_ADMIN_USER": {
                      "isOptional": true,
                      "description": "Admin login, created on first start.",
                      "defaultValue": "admin"
                    },
                    "GF_USERS_ALLOW_SIGN_UP": {
                      "isOptional": true,
                      "description": "No self sign-up; invite users from Administration.",
                      "defaultValue": "false"
                    },
                    "GF_DEFAULT_INSTANCE_NAME": {
                      "isOptional": true,
                      "description": "Instance name shown in Grafana.",
                      "defaultValue": "Grafana on Railway"
                    },
                    "GF_SECURITY_COOKIE_SECURE": {
                      "isOptional": true,
                      "description": "Session cookies only over HTTPS.",
                      "defaultValue": "true"
                    },
                    "GF_SECURITY_ADMIN_PASSWORD": {
                      "isOptional": true,
                      "description": "Admin password, applied on first start only (change it later in Grafana).",
                      "defaultValue": "{{GF_SECURITY_ADMIN_PASSWORD}}"
                    },
                    "GF_ANALYTICS_REPORTING_ENABLED": {
                      "isOptional": true,
                      "description": "Do not send usage statistics to Grafana Labs.",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "5e913892-a5f4-5f9b-88fd-a2ff949f17b8": {
                      "mountPath": "/var/lib/grafana"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "alloy",
      "method": "GET",
      "path": "/-/ready",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T22:14:38.939Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-11T19:09:03.555Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_9bb9a8133aea4586a652",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
