{
  "manifest_version": "1.0.0",
  "template": {
    "id": "98e955f7-b076-4546-8bc6-e3cd7bf3c3ba",
    "slug": "greptimedb-observability",
    "name": "GreptimeDB observability",
    "description": "Authenticated GreptimeDB for durable metrics, logs, and traces.",
    "url": "https://railway.com/deploy/greptimedb-observability",
    "upstream": {
      "image": "greptime/greptimedb:v1.1.4@sha256:9726587eac95d0360755254cd59a528dbf48abfdf268478aea6a644f62afe44c"
    }
  },
  "services": [
    {
      "name": "GreptimeDB",
      "source": {
        "image": "greptime/greptimedb:v1.1.4@sha256:9726587eac95d0360755254cd59a528dbf48abfdf268478aea6a644f62afe44c"
      },
      "needs_volume": true,
      "volume_mount_path": "/greptimedb_data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "GreptimeDB",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "GREPTIME_PASSWORD",
      "service": "GreptimeDB",
      "description": "Generated database and dashboard password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GREPTIME_USERNAME",
      "service": "GreptimeDB",
      "description": "Database and dashboard username.",
      "secret": false,
      "strategy": "default",
      "default": "greptime"
    },
    {
      "key": "GREPTIMEDB_STANDALONE__ENABLE_TELEMETRY",
      "service": "GreptimeDB",
      "description": "Provide a value for GREPTIMEDB_STANDALONE__ENABLE_TELEMETRY.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "greptimedb-observability"
      }
    },
    "cli": "railway deploy --template greptimedb-observability",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "98e955f7-b076-4546-8bc6-e3cd7bf3c3ba",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2ead2455-f0c6-4a69-8af4-e387fe5de450": {
                  "icon": null,
                  "name": "GreptimeDB",
                  "deploy": {
                    "startCommand": "/bin/bash -ec 'umask 077; printf \"%s=%s\\n\" \"$GREPTIME_USERNAME\" \"$GREPTIME_PASSWORD\" >/tmp/greptimedb-users; exec greptime standalone start --http-addr 0.0.0.0:4000 --grpc-bind-addr 0.0.0.0:4001 --mysql-addr 0.0.0.0:4002 --postgres-addr 0.0.0.0:4003 --data-home /greptimedb_data --user-provider static_user_provider:file:/tmp/greptimedb-users'",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "greptime/greptimedb:v1.1.4@sha256:9726587eac95d0360755254cd59a528dbf48abfdf268478aea6a644f62afe44c"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "4000"
                    },
                    "GREPTIME_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated database and dashboard password.",
                      "defaultValue": "{{GREPTIME_PASSWORD}}"
                    },
                    "GREPTIME_USERNAME": {
                      "isOptional": false,
                      "description": "Database and dashboard username.",
                      "defaultValue": "greptime"
                    },
                    "GREPTIMEDB_STANDALONE__ENABLE_TELEMETRY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 4000
                      }
                    }
                  },
                  "volumeMounts": {
                    "2ead2455-f0c6-4a69-8af4-e387fe5de450": {
                      "sizeMB": 5000,
                      "mountPath": "/greptimedb_data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "GreptimeDB",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-05T00:27:20.515Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b1a08b16b4a14f2db900",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 27,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "GreptimeDB"
  }
}
