{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5c8b0c1c-9579-4f6a-9fe2-679f99be5857",
    "slug": "opentelemetry-lgtm",
    "name": "OpenTelemetry LGTM",
    "description": "Deploy and Host the Grafana LGTM stack with Opentelemetry Collector",
    "url": "https://railway.com/deploy/opentelemetry-lgtm",
    "upstream": {
      "repo_url": "https://github.com/jratienza65/otel-lgtm-railway"
    }
  },
  "services": [
    {
      "name": "OpenTelemetry Collector",
      "source": {
        "repo": "https://github.com/jratienza65/otel-lgtm-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Tempo",
      "source": {
        "repo": "https://github.com/jratienza65/otel-lgtm-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Grafana",
      "source": {
        "repo": "https://github.com/jratienza65/otel-lgtm-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/grafana",
      "http": true
    },
    {
      "name": "Loki",
      "source": {
        "repo": "https://github.com/jratienza65/otel-lgtm-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Prometheus",
      "source": {
        "repo": "https://github.com/jratienza65/otel-lgtm-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "OpenTelemetry Collector",
      "description": "OpenTelemetry Collector's healthcheck port.",
      "secret": false,
      "strategy": "default",
      "default": "13133"
    },
    {
      "key": "VERSION",
      "service": "OpenTelemetry Collector",
      "description": "OpenTelemetry Collector image tag, passed as a build arg.",
      "secret": false,
      "strategy": "default",
      "default": "0.139.0"
    },
    {
      "key": "RAILWAY_LOKI_ENDPOINT",
      "service": "OpenTelemetry Collector",
      "description": "Where logs are written. Loki's OTLP path, not its base URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_OTEL_HTPASSWD",
      "service": "OpenTelemetry Collector",
      "description": "Credentials producers must send. One `user:password` line each. **Mark as secret.**",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_TEMPO_ENDPOINT",
      "service": "OpenTelemetry Collector",
      "description": "Where traces are written. Tempo's OTLP port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_PROMETHEUS_ENDPOINT",
      "service": "OpenTelemetry Collector",
      "description": "Where metrics are written. Prometheus's OTLP path.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_OTEL_ALLOW_UNAUTHENTICATED",
      "service": "OpenTelemetry Collector",
      "description": "Set this to `true` to allow the unauthenticated entry into your collector. **Not recommended**",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PORT",
      "service": "Tempo",
      "description": "HTTP port Tempo listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3200"
    },
    {
      "key": "VERSION",
      "service": "Tempo",
      "description": "Tempo image tag, passed as a build arg.",
      "secret": false,
      "strategy": "default",
      "default": "2.9.0"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Tempo",
      "description": "Run as root so Tempo can write to the mounted volume.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RAILWAY_PROMETHEUS_REMOTE_WRITE_ENDPOINT",
      "service": "Tempo",
      "description": "Where span metrics and service graphs are remote-written.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "Grafana",
      "description": "HTTP port Grafana listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "VERSION",
      "service": "Grafana",
      "description": "Grafana image tag, passed as a build arg.",
      "secret": false,
      "strategy": "default",
      "default": "12.3.1"
    },
    {
      "key": "GF_PATHS_DATA",
      "service": "Grafana",
      "description": "Grafana's data directory. Must match the volume mount path.",
      "secret": false,
      "strategy": "default",
      "default": "/data/grafana"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Grafana",
      "description": "Run as root so Grafana can write to the mounted volume.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "GF_PLUGINS_PREINSTALL",
      "service": "Grafana",
      "description": "Plugins installed at startup, comma-separated.",
      "secret": false,
      "strategy": "default",
      "default": "grafana-simple-json-datasource,grafana-piechart-panel,grafana-geomap-panel,grafana-clock-panel"
    },
    {
      "key": "RAILWAY_LOKI_ENDPOINT",
      "service": "Grafana",
      "description": "Loki datasource URL. Base URL — **not** the `/otlp` path the collector uses.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GF_SECURITY_ADMIN_USER",
      "service": "Grafana",
      "description": "Username for the initial admin login.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RAILWAY_TEMPO_ENDPOINT",
      "service": "Grafana",
      "description": "Tempo datasource URL. Its HTTP port, **not** the 4318 OTLP port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GF_DEFAULT_INSTANCE_NAME",
      "service": "Grafana",
      "description": "Grafana's default instance name.",
      "secret": false,
      "strategy": "default",
      "default": "LGTM!"
    },
    {
      "key": "GF_SECURITY_ADMIN_PASSWORD",
      "service": "Grafana",
      "description": "Password for the initial admin login. **Mark as secret.**",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_PROMETHEUS_ENDPOINT",
      "service": "Grafana",
      "description": "Prometheus datasource URL. Base URL — **not** the `/api/v1/otlp` path.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "Loki",
      "description": "HTTP port Loki listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3100"
    },
    {
      "key": "VERSION",
      "service": "Loki",
      "description": "Loki image tag, passed as a build arg.",
      "secret": false,
      "strategy": "default",
      "default": "3.6.2"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Loki",
      "description": "Run as root so Loki can write to the mounted volume.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RAILWAY_PROMETHEUS_ALERTMANAGER_ENDPOINT",
      "service": "Loki",
      "description": "Alertmanager for the ruler. *Optional; leave unset if you do not alert on logs.*",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "Prometheus",
      "description": "HTTP port Prometheus listens on.",
      "secret": false,
      "strategy": "default",
      "default": "9090"
    },
    {
      "key": "VERSION",
      "service": "Prometheus",
      "description": "Prometheus image tag, passed as a build arg.",
      "secret": false,
      "strategy": "default",
      "default": "v3.8.0"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Prometheus",
      "description": "Run as root so Prometheus can write to the mounted volume.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "opentelemetry-lgtm"
      }
    },
    "cli": "railway deploy --template opentelemetry-lgtm",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5c8b0c1c-9579-4f6a-9fe2-679f99be5857",
            "serializedConfig": {
              "services": {
                "276c20db-31dd-4fbd-901e-9f3a7dde0b59": {
                  "icon": "https://devicons.railway.app/opentelemetry",
                  "name": "OpenTelemetry Collector",
                  "deploy": {
                    "healthcheckPath": "/ready"
                  },
                  "source": {
                    "repo": "jratienza65/otel-lgtm-railway",
                    "branch": null,
                    "rootDirectory": "/otelcol/gateway"
                  },
                  "variables": {
                    "PORT": {
                      "description": "OpenTelemetry Collector's healthcheck port.",
                      "defaultValue": "13133"
                    },
                    "VERSION": {
                      "description": "OpenTelemetry Collector image tag, passed as a build arg.",
                      "defaultValue": "0.139.0"
                    },
                    "RAILWAY_LOKI_ENDPOINT": {
                      "description": "Where logs are written. Loki's OTLP path, not its base URL.",
                      "defaultValue": "http://${{Loki.RAILWAY_PRIVATE_DOMAIN}}:3100/otlp"
                    },
                    "RAILWAY_OTEL_HTPASSWD": {
                      "isOptional": true,
                      "description": "Credentials producers must send. One `user:password` line each. **Mark as secret.**",
                      "defaultValue": "{{RAILWAY_OTEL_HTPASSWD}}"
                    },
                    "RAILWAY_TEMPO_ENDPOINT": {
                      "description": "Where traces are written. Tempo's OTLP port.",
                      "defaultValue": "http://${{Tempo.RAILWAY_PRIVATE_DOMAIN}}:4318"
                    },
                    "RAILWAY_PROMETHEUS_ENDPOINT": {
                      "description": "Where metrics are written. Prometheus's OTLP path.",
                      "defaultValue": "http://${{Prometheus.RAILWAY_PRIVATE_DOMAIN}}:9090/api/v1/otlp"
                    },
                    "RAILWAY_OTEL_ALLOW_UNAUTHENTICATED": {
                      "isOptional": true,
                      "description": "Set this to `true` to allow the unauthenticated entry into your collector. **Not recommended**",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4318": {
                        "port": 4318
                      }
                    }
                  }
                },
                "355c498a-f0f9-4d7e-8469-f409556cb696": {
                  "icon": "https://grafana.com/static/assets/img/logos/grafana-tempo.svg",
                  "name": "Tempo",
                  "source": {
                    "repo": "jratienza65/otel-lgtm-railway",
                    "branch": null,
                    "rootDirectory": "/tempo"
                  },
                  "variables": {
                    "PORT": {
                      "description": "HTTP port Tempo listens on.",
                      "defaultValue": "3200"
                    },
                    "VERSION": {
                      "description": "Tempo image tag, passed as a build arg.",
                      "defaultValue": "2.9.0"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root so Tempo can write to the mounted volume.",
                      "defaultValue": "0"
                    },
                    "RAILWAY_PROMETHEUS_REMOTE_WRITE_ENDPOINT": {
                      "description": "Where span metrics and service graphs are remote-written.",
                      "defaultValue": "http://${{Prometheus.RAILWAY_PRIVATE_DOMAIN}}:9090/api/v1/write"
                    }
                  },
                  "volumeMounts": {
                    "355c498a-f0f9-4d7e-8469-f409556cb696": {
                      "mountPath": "/data"
                    }
                  }
                },
                "3722085a-995f-410a-beaa-3d1b26a46408": {
                  "icon": "https://devicons.railway.app/grafana",
                  "name": "Grafana",
                  "deploy": {
                    "healthcheckPath": "/api/health"
                  },
                  "source": {
                    "repo": "jratienza65/otel-lgtm-railway",
                    "branch": null,
                    "rootDirectory": "/grafana"
                  },
                  "variables": {
                    "PORT": {
                      "description": "HTTP port Grafana listens on.",
                      "defaultValue": "3000"
                    },
                    "VERSION": {
                      "description": "Grafana image tag, passed as a build arg.",
                      "defaultValue": "12.3.1"
                    },
                    "GF_PATHS_DATA": {
                      "description": "Grafana's data directory. Must match the volume mount path.",
                      "defaultValue": "/data/grafana"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root so Grafana can write to the mounted volume.",
                      "defaultValue": "0"
                    },
                    "GF_PLUGINS_PREINSTALL": {
                      "description": "Plugins installed at startup, comma-separated.",
                      "defaultValue": "grafana-simple-json-datasource,grafana-piechart-panel,grafana-geomap-panel,grafana-clock-panel"
                    },
                    "RAILWAY_LOKI_ENDPOINT": {
                      "description": "Loki datasource URL. Base URL — **not** the `/otlp` path the collector uses.",
                      "defaultValue": "http://${{Loki.RAILWAY_PRIVATE_DOMAIN}}:3100"
                    },
                    "GF_SECURITY_ADMIN_USER": {
                      "description": "Username for the initial admin login.",
                      "defaultValue": "admin"
                    },
                    "RAILWAY_TEMPO_ENDPOINT": {
                      "description": "Tempo datasource URL. Its HTTP port, **not** the 4318 OTLP port.",
                      "defaultValue": "http://${{Tempo.RAILWAY_PRIVATE_DOMAIN}}:3200"
                    },
                    "GF_DEFAULT_INSTANCE_NAME": {
                      "description": "Grafana's default instance name.",
                      "defaultValue": "LGTM!"
                    },
                    "GF_SECURITY_ADMIN_PASSWORD": {
                      "description": "Password for the initial admin login. **Mark as secret.**",
                      "defaultValue": "{{GF_SECURITY_ADMIN_PASSWORD}}"
                    },
                    "RAILWAY_PROMETHEUS_ENDPOINT": {
                      "description": "Prometheus datasource URL. Base URL — **not** the `/api/v1/otlp` path.",
                      "defaultValue": "http://${{Prometheus.RAILWAY_PRIVATE_DOMAIN}}:9090"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "3722085a-995f-410a-beaa-3d1b26a46408": {
                      "mountPath": "/data/grafana"
                    }
                  }
                },
                "4beb20da-eb1d-494b-a5a5-2aee133f6610": {
                  "icon": "https://grafana.com/media/docs/loki/logo-grafana-loki.png",
                  "name": "Loki",
                  "source": {
                    "repo": "jratienza65/otel-lgtm-railway",
                    "branch": null,
                    "rootDirectory": "/loki"
                  },
                  "variables": {
                    "PORT": {
                      "description": "HTTP port Loki listens on.",
                      "defaultValue": "3100"
                    },
                    "VERSION": {
                      "description": "Loki image tag, passed as a build arg.",
                      "defaultValue": "3.6.2"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root so Loki can write to the mounted volume.",
                      "defaultValue": "0"
                    },
                    "RAILWAY_PROMETHEUS_ALERTMANAGER_ENDPOINT": {
                      "description": "Alertmanager for the ruler. *Optional; leave unset if you do not alert on logs.*",
                      "defaultValue": "http://${{Prometheus.RAILWAY_PRIVATE_DOMAIN}}:8888"
                    }
                  },
                  "volumeMounts": {
                    "4beb20da-eb1d-494b-a5a5-2aee133f6610": {
                      "mountPath": "/data"
                    }
                  }
                },
                "d2dda7fd-3eeb-4077-86ad-12d43261f98e": {
                  "icon": "https://devicons.railway.app/prom",
                  "name": "Prometheus",
                  "source": {
                    "repo": "jratienza65/otel-lgtm-railway",
                    "branch": null,
                    "rootDirectory": "/prometheus"
                  },
                  "variables": {
                    "PORT": {
                      "description": "HTTP port Prometheus listens on.",
                      "defaultValue": "9090"
                    },
                    "VERSION": {
                      "description": "Prometheus image tag, passed as a build arg.",
                      "defaultValue": "v3.8.0"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root so Prometheus can write to the mounted volume.",
                      "defaultValue": "0"
                    }
                  },
                  "volumeMounts": {
                    "d2dda7fd-3eeb-4077-86ad-12d43261f98e": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "OpenTelemetry Collector",
      "method": "GET",
      "path": "/ready",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-18T16:58:37.095Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_d8ca916240344ecb8fca",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": false,
        "detail": "got 401, expected 200"
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ]
  }
}
