{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1472f28c-b4db-4ace-9530-6f6292d2b6cd",
    "slug": "victoria-monitoring-stack",
    "name": "Victoria monitoring stack",
    "description": "Grafana, VictoriaMetrics monitoring with Caddy API-key proxy",
    "url": "https://railway.com/deploy/victoria-monitoring-stack",
    "upstream": {
      "repo_url": "https://github.com/thealish/railway-victoriametrics-template"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "auth-proxy",
      "source": {
        "repo": "https://github.com/thealish/railway-victoriametrics-template"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "grafana",
      "source": {
        "repo": "https://github.com/thealish/railway-victoriametrics-template"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "victoriametrics",
      "source": {
        "repo": "https://github.com/thealish/railway-victoriametrics-template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "vmagent",
      "source": {
        "repo": "https://github.com/thealish/railway-victoriametrics-template"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "auth-proxy",
      "description": "port",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "API_KEY",
      "service": "auth-proxy",
      "description": "api key for external access",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PORT",
      "service": "grafana",
      "description": "port",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PORT",
      "service": "victoriametrics",
      "description": "port",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PORT",
      "service": "vmagent",
      "description": "port",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "victoria-monitoring-stack"
      }
    },
    "cli": "railway deploy --template victoria-monitoring-stack",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1472f28c-b4db-4ace-9530-6f6292d2b6cd",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4f238fce-66df-47ee-8210-18c6d9f6cc00": {
                  "icon": "https://www.svgrepo.com/svg/373487/caddy",
                  "name": "auth-proxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/thealish/railway-victoriametrics-template",
                    "rootDirectory": "/auth-proxy"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "port",
                      "defaultValue": "{{PORT}}"
                    },
                    "API_KEY": {
                      "isOptional": false,
                      "description": "api key for external access",
                      "defaultValue": "{{API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "5284946e-30ef-4071-bbff-e988b1d1d61d": {
                  "icon": "https://devicons.railway.com/i/grafana.svg",
                  "name": "grafana",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/thealish/railway-victoriametrics-template",
                    "rootDirectory": "/grafana"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "port",
                      "defaultValue": "{{PORT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "776285d9-991e-4cb2-9ccf-3e53fe413a30": {
                  "icon": "https://upload.wikimedia.org/wikipedia/commons/c/c6/VictoriaMetrics_logo.svg",
                  "name": "victoriametrics",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/thealish/railway-victoriametrics-template",
                    "rootDirectory": "/victoriametrics"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "port",
                      "defaultValue": "{{PORT}}"
                    }
                  }
                },
                "fdec7349-e0a0-46c1-9fc7-7140ab8d06c5": {
                  "icon": "https://upload.wikimedia.org/wikipedia/commons/c/c6/VictoriaMetrics_logo.svg",
                  "name": "vmagent",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/thealish/railway-victoriametrics-template",
                    "rootDirectory": "/vmagent"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "port",
                      "defaultValue": "{{PORT}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "auth-proxy",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
