{
  "manifest_version": "1.0.0",
  "template": {
    "id": "daf027fc-6580-4eb4-bebb-6f7064fec7e5",
    "slug": "gDzHrM",
    "name": "Postgres Metrics Prometheus Exporter",
    "description": "A Prometheus exporter for gathering metrics about your Railway Postgres DB",
    "url": "https://railway.com/deploy/gDzHrM",
    "upstream": {
      "repo_url": "https://github.com/zuchka/railway-postgres-exporter/tree/main"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "postgres-metrics-collector",
      "source": {
        "repo": "https://github.com/zuchka/railway-postgres-exporter/tree/main"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "postgres-metrics-collector",
      "description": "default port for service",
      "secret": false,
      "strategy": "default",
      "default": "9187"
    },
    {
      "key": "DATA_SOURCE_NAME",
      "service": "postgres-metrics-collector",
      "description": "maps your datasource URL to the prometheus variable for target database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gDzHrM"
      }
    },
    "cli": "railway deploy --template gDzHrM",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "daf027fc-6580-4eb4-bebb-6f7064fec7e5",
            "serializedConfig": {
              "services": {
                "8e0819b0-02a2-447b-abf5-aad229dc88af": {
                  "name": "postgres-metrics-collector",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "repo": "https://github.com/zuchka/railway-postgres-exporter/tree/main"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "default port for service",
                      "defaultValue": "9187"
                    },
                    "DATA_SOURCE_NAME": {
                      "isOptional": false,
                      "description": "maps your datasource URL to the prometheus variable for target database",
                      "defaultValue": "${{postgresql.DATABASE_URL}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-06T11:54:17.289Z",
  "generator_version": "0.1.0"
}
