{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7d2e7afa-17d2-49ef-a061-b132c1bdebe0",
    "slug": "victoriametrics-1",
    "name": "VictoriaMetrics",
    "description": "VictoriaMetrics 1.152 Prometheus-compatible metrics DB with auth and OTLP.",
    "url": "https://railway.com/deploy/victoriametrics-1",
    "upstream": {
      "image": "victoriametrics/victoria-metrics:v1.152.0"
    }
  },
  "services": [
    {
      "name": "victoriametrics",
      "source": {
        "image": "victoriametrics/victoria-metrics:v1.152.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "victoriametrics",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8428"
    },
    {
      "key": "enableTCP6",
      "service": "victoriametrics",
      "description": "Provide a value for enableTCP6.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "retentionPeriod",
      "service": "victoriametrics",
      "description": "Provide a value for retentionPeriod.",
      "secret": false,
      "strategy": "default",
      "default": "30d"
    },
    {
      "key": "httpAuth_password",
      "service": "victoriametrics",
      "description": "Provide a value for httpAuth_password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "httpAuth_username",
      "service": "victoriametrics",
      "description": "Provide a value for httpAuth_username.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "VICTORIAMETRICS_URL",
      "service": "victoriametrics",
      "description": "Provide a value for VICTORIAMETRICS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "VICTORIAMETRICS_PRIVATE_URL",
      "service": "victoriametrics",
      "description": "Provide a value for VICTORIAMETRICS_PRIVATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "victoriametrics",
      "description": "Provide a value for RAILWAY_DEPLOYMENT_DRAINING_SECONDS.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "victoriametrics-1"
      }
    },
    "cli": "railway deploy --template victoriametrics-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7d2e7afa-17d2-49ef-a061-b132c1bdebe0",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3ec9c571-9b88-40ae-bdf8-c1ab2d91c777": {
                  "icon": "https://cdn.simpleicons.org/victoriametrics",
                  "name": "victoriametrics",
                  "deploy": {
                    "startCommand": "/victoria-metrics-prod -envflag.enable -storageDataPath=/storage",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "victoriametrics/victoria-metrics:v1.152.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "8428"
                    },
                    "enableTCP6": {
                      "isOptional": false,
                      "defaultValue": "true"
                    },
                    "retentionPeriod": {
                      "isOptional": false,
                      "defaultValue": "30d"
                    },
                    "httpAuth_password": {
                      "isOptional": false,
                      "defaultValue": "{{httpAuth_password}}"
                    },
                    "httpAuth_username": {
                      "isOptional": false,
                      "defaultValue": "admin"
                    },
                    "VICTORIAMETRICS_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "VICTORIAMETRICS_PRIVATE_URL": {
                      "isOptional": false,
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:8428"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8428": {
                        "port": 8428
                      }
                    }
                  },
                  "volumeMounts": {
                    "3ec9c571-9b88-40ae-bdf8-c1ab2d91c777": {
                      "mountPath": "/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "victoriametrics",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-23T22:14:45.316Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-23T22:02:22.731Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4022f561d6aa4eafb201",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 31,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "victoriametrics"
  }
}
