{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2c76f9e2-7077-498d-b2cf-0f40414d7f51",
    "slug": "faP63Y",
    "name": "Grafana OpenTelemetry Stack",
    "description": "One-click Grafana/OTLP stack deployment",
    "url": "https://railway.com/deploy/faP63Y",
    "upstream": {
      "repo_url": "https://github.com/wangxued/do-opentelemetry-collector"
    }
  },
  "services": [
    {
      "name": "Grafana",
      "source": {
        "repo": "https://github.com/wangxued/do-opentelemetry-collector"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/grafana",
      "http": true
    },
    {
      "name": "Prometheus",
      "source": {
        "repo": "https://github.com/wangxued/do-opentelemetry-collector"
      },
      "needs_volume": true,
      "volume_mount_path": "/prometheus",
      "http": true
    },
    {
      "name": "Loki",
      "source": {
        "repo": "https://github.com/wangxued/do-opentelemetry-collector"
      },
      "needs_volume": true,
      "volume_mount_path": "/tmp/loki",
      "http": false
    },
    {
      "name": "Tempo",
      "source": {
        "repo": "https://github.com/wangxued/do-opentelemetry-collector"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/tempo",
      "http": false
    },
    {
      "name": "Otel-Collector",
      "source": {
        "repo": "https://github.com/wangxued/do-opentelemetry-collector"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Grafana",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Grafana",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RAILWAY_LOKI_URL",
      "service": "Grafana",
      "description": "Provide a value for RAILWAY_LOKI_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_TEMPO_URL",
      "service": "Grafana",
      "description": "Provide a value for RAILWAY_TEMPO_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GF_INSTALL_PLUGINS",
      "service": "Grafana",
      "description": "Provide a value for GF_INSTALL_PLUGINS.",
      "secret": false,
      "strategy": "default",
      "default": "grafana-simple-json-datasource,grafana-piechart-panel,grafana-worldmap-panel,grafana-clock-panel"
    },
    {
      "key": "GF_SECURITY_ADMIN_USER",
      "service": "Grafana",
      "description": "Provide a value for GF_SECURITY_ADMIN_USER.",
      "secret": false,
      "strategy": "default",
      "default": "adminuser"
    },
    {
      "key": "RAILWAY_PROMETHEUS_URL",
      "service": "Grafana",
      "description": "Provide a value for RAILWAY_PROMETHEUS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GF_DEFAULT_INSTANCE_NAME",
      "service": "Grafana",
      "description": "Provide a value for GF_DEFAULT_INSTANCE_NAME.",
      "secret": false,
      "strategy": "default",
      "default": "Grafana on Railway"
    },
    {
      "key": "GF_SECURITY_ADMIN_PASSWORD",
      "service": "Grafana",
      "description": "Provide a value for GF_SECURITY_ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Prometheus",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "9090"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Prometheus",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Loki",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Tempo",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RAILWAY_PROMETHEUS_ENDPOINT",
      "service": "Tempo",
      "description": "Provide a value for RAILWAY_PROMETHEUS_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "Otel-Collector",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "4318"
    },
    {
      "key": "RAILWAY_LOKI_ENDPOINT",
      "service": "Otel-Collector",
      "description": "Provide a value for RAILWAY_LOKI_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_TEMPO_ENDPOINT",
      "service": "Otel-Collector",
      "description": "Provide a value for RAILWAY_TEMPO_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_PROMETHEUS_ENDPOINT",
      "service": "Otel-Collector",
      "description": "Provide a value for RAILWAY_PROMETHEUS_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "faP63Y"
      }
    },
    "cli": "railway deploy --template faP63Y",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2c76f9e2-7077-498d-b2cf-0f40414d7f51",
            "serializedConfig": {
              "services": {
                "1f023eed-c572-4ea7-9300-f6510a1ea06f": {
                  "name": "Grafana",
                  "source": {
                    "repo": "wangxued/do-opentelemetry-collector",
                    "branch": null,
                    "rootDirectory": "/grafana"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "3000"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "RAILWAY_LOKI_URL": {
                      "defaultValue": "http://${{Loki.RAILWAY_PRIVATE_DOMAIN}}:3100"
                    },
                    "RAILWAY_TEMPO_URL": {
                      "defaultValue": "http://${{Tempo.RAILWAY_PRIVATE_DOMAIN}}:3200"
                    },
                    "GF_INSTALL_PLUGINS": {
                      "defaultValue": "grafana-simple-json-datasource,grafana-piechart-panel,grafana-worldmap-panel,grafana-clock-panel"
                    },
                    "GF_SECURITY_ADMIN_USER": {
                      "defaultValue": "adminuser"
                    },
                    "RAILWAY_PROMETHEUS_URL": {
                      "defaultValue": "http://${{Prometheus.RAILWAY_PRIVATE_DOMAIN}}:9090"
                    },
                    "GF_DEFAULT_INSTANCE_NAME": {
                      "defaultValue": "Grafana on Railway"
                    },
                    "GF_SECURITY_ADMIN_PASSWORD": {
                      "defaultValue": "{{GF_SECURITY_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "1f023eed-c572-4ea7-9300-f6510a1ea06f": {
                      "mountPath": "/var/lib/grafana"
                    }
                  }
                },
                "290afb15-3270-4006-9764-9d32b3c4704a": {
                  "name": "Prometheus",
                  "source": {
                    "repo": "wangxued/do-opentelemetry-collector",
                    "branch": null,
                    "rootDirectory": "/prometheus"
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "9090"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "290afb15-3270-4006-9764-9d32b3c4704a": {
                      "mountPath": "/prometheus"
                    }
                  }
                },
                "3d840588-5af8-46a5-a4d2-ef466c6cc99c": {
                  "name": "Loki",
                  "source": {
                    "repo": "wangxued/do-opentelemetry-collector",
                    "branch": null,
                    "rootDirectory": "/loki"
                  },
                  "variables": {
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "3d840588-5af8-46a5-a4d2-ef466c6cc99c": {
                      "mountPath": "/tmp/loki"
                    }
                  }
                },
                "6799a847-2690-4a12-a925-e86680004de9": {
                  "name": "Tempo",
                  "source": {
                    "repo": "wangxued/do-opentelemetry-collector",
                    "branch": null,
                    "rootDirectory": "/tempo"
                  },
                  "variables": {
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "RAILWAY_PROMETHEUS_ENDPOINT": {
                      "defaultValue": "http://${{Prometheus.RAILWAY_PRIVATE_DOMAIN}}:9090/api/v1/write"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "6799a847-2690-4a12-a925-e86680004de9": {
                      "mountPath": "/var/tempo"
                    }
                  }
                },
                "da1ada6f-942c-4161-bdc8-70bd40753843": {
                  "name": "Otel-Collector",
                  "source": {
                    "repo": "wangxued/do-opentelemetry-collector",
                    "branch": null,
                    "rootDirectory": "/opentelemetry"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "4318"
                    },
                    "RAILWAY_LOKI_ENDPOINT": {
                      "defaultValue": "http://${{Loki.RAILWAY_PRIVATE_DOMAIN}}:3100/otlp"
                    },
                    "RAILWAY_TEMPO_ENDPOINT": {
                      "defaultValue": "${{Tempo.RAILWAY_PRIVATE_DOMAIN}}:4317"
                    },
                    "RAILWAY_PROMETHEUS_ENDPOINT": {
                      "defaultValue": "${{Prometheus.RAILWAY_PRIVATE_DOMAIN}}:9090/api/v1/write"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T08:08:40.419Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_43f247f2272c405c874c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 131,
    "typical_build_seconds": 61,
    "typical_start_seconds": 10,
    "slowest_service": "Grafana"
  }
}
