Skip to content

For the complete documentation index, see llms.txt.

Deploy trace analysis

The PIG trace analyzer runs in your infrastructure and analyzes agent sessions with your model provider. Session data stays in your PostgreSQL database and trace bucket. The Promptless Dashboard shows findings, remediations, analyzer status, and agent instruction health.

Start here before you install anything. This page covers the requirements, the installation paths, and analyzer registration, which gives you the credential every installation path needs. After installation, the analyzer and its update controller, the supervisor, follow stable releases automatically. You can pause updates or pin a release.

The current stable release, PIG 0.3.6, is published for AWS: an existing Amazon EKS cluster with Amazon RDS for PostgreSQL and Amazon S3. Its release record does not include live end-to-end acceptance on AWS, so complete deployment verification before you rely on an installation. Azure with AKS and Google Cloud with GKE are experimental. Use them for evaluation.

The 0.3.6 release requires:

RequirementPIG 0.3.6
Kubernetes1.30 or later.
PostgreSQLMajor version 15, 16, 17, or 18, in a database dedicated to one deployment.
Object storageExactly one of Amazon S3, Azure Blob Storage, or Google Cloud Storage.
Database schemaRevision 5.
Analyzer modelOpenAI, Azure OpenAI, or Amazon Bedrock through a Responses API endpoint.
  1. Check the requirements in Before you begin and register an analyzer.
  2. Provision the database, trace bucket, workload identity, and network access with Terraform. Use the AWS guide. The Azure and Google Cloud guides are experimental. Skip this step if you already have these resources.
  3. Install with Helm. The guide verifies the release, bootstraps the supervisor and collector Ingress, and creates the PIGDeployment. It ends with HTTPS checks, repository selection, and enabling analysis.
  4. Publish your Instruction Hub. Then enable trace collection and enroll a pilot host.
  5. Verify one session end to end. Hand off operation with updates and recovery.

Each cloud guide creates dedicated PIG infrastructure in your existing network, then continues with the same Helm installation. Choose manual Helm management instead when your team must schedule and apply every application upgrade itself.

Every installation path needs these:

RequirementWhat to prepare
KubernetesA cluster running Kubernetes 1.30 or later, kubectl, and Helm 3.8 or later. Permission to install namespaces, cluster-scoped RBAC, and the PIG custom resource definition.
ComputeCapacity for one analyzer pod, the supervisor, and migration Jobs. Start with the pilot sizing.
PostgreSQLA dedicated PostgreSQL 15–18 database, schema-owner credentials, sslmode=verify-full TLS with its CA bundle, backups, and private connectivity from the analyzer and its Jobs.
Trace bucketExactly one private S3 bucket, Azure Blob Storage container, or Google Cloud Storage bucket, with a dedicated prefix.
Workload identityA cloud identity for ServiceAccount pig/pig-analyzer that can read and write objects under that prefix, such as IAM roles for service accounts on EKS.
HTTPS endpointA hostname, DNS record, certificate, and ingress controller reachable from every enrolled host and cloud runner. Claude Tag needs a public endpoint. Proxies must accept 10 MiB request bodies.
Promptless registrationAn organization admin account and an analyzer credential stored in your secret manager.
Instruction repositoriesGitHub repositories with a readable main branch, selected in PIG Settings and reachable through the connected GitHub App with Contents read access.
Model accessA supported Responses API endpoint, a model available in your account, its authorization, and quota for analysis.

To have a coding agent check these requirements and recommend a path without changing anything, copy this prompt. Set up PIG with a coding agent covers the whole setup.

Ask your agent: check deployment readiness
Check whether we are ready to deploy the PIG trace analyzer, and recommend an
installation path. Follow
https://promptless.ai/docs/governance/deploy-the-worker/plan-your-deployment.md
and phase 1 of https://promptless.ai/docs/governance/agent-setup-guide.md
Scope: read-only inspection. Do not create, change, or delete anything.
Inputs (discover these before you ask me):
- Cloud account and region: [for example, AWS account 123456789012, us-west-2]
- Kubernetes context: [context name]
- Instruction repositories: [GitHub repositories the analyzer should read]
- Model provider: [OpenAI, Azure OpenAI, or AWS Bedrock]
Report each "Before you begin" requirement as ready, missing, or unknown,
with evidence. Recommend a supported path, say if it is experimental, and
list the steps that need me or another admin.

Choose infrastructure regions that meet your data residency requirements. The model provider can run in a different cloud from your trace bucket. Model providers lists the supported endpoints.

Register the analyzer before you install it, so its credential is ready for the Kubernetes Secret. Registration creates the analyzer installation in Promptless. Workloads start in your cluster only when you install PIG.

  1. As an organization admin, open the Workers settings page and select the organization that owns the analyzer.
  2. On the Add analyzer card, enter an Analyzer name, such as production-us-east-2, and select Add analyzer.
  3. In Save analyzer credential, select Copy credential and store the value in your secret manager. The credential is shown only once.
  4. Select Done.

The analyzer appears on the Analyzers card as Awaiting connection until it first checks in. During installation, you deliver the credential as key install-token of Secret pig-credentials. The analyzer uses the credential to discover its installation identity, and it connects to the Promptless hosted endpoint by default.

After the analyzer checks in, an organization admin chooses the repositories it reads on the same Workers settings page, as described in Select instruction repositories.

Keep the credential out of Git and chat. It grants access only to this analyzer installation, and all replicas of the installation share it. Prepare your database and model credentials separately.

If you lose the credential, select Rotate credential on the same analyzer. Rotation revokes the previous credential immediately, so hosted access stops until you update your Secret and the analyzer restarts. The installation, its history, and enrolled hosts keep their identities, and you can rotate again if you lose the replacement. Revoke credential disables the credential and keeps the installation and its history.

Set spec.hosted.runtimeURL only to connect to another Promptless environment, such as a dedicated deployment. The default is https://api.gopromptless.ai. This hosted endpoint is separate from the analyzer’s own HTTPS hostname, which you manage.

OwnerMaintains
Your platform team, using TerraformCloud databases and their capacity, trace storage, networking, IAM, encryption keys, backup and retention policies.
Your Kubernetes configuration and secret managerNamespaces, analyzer workload identity, desired PIGDeployment configuration, secret delivery, and certificates.
PIGAnalyzer and supervisor application releases, generated workloads, and database schema migrations within the installed permissions.

Keep the one-time Helm bootstrap outside Terraform’s ongoing reconciliation. After bootstrap, PIG updates its own workloads. A second controller restoring the original chart would undo those updates. GitOps ownership explains the handoff.

A release that needs more infrastructure capacity or access reports a blocked update. Your team reviews and applies the Terraform change; PIG resumes when its live checks and any required release-specific confirmations pass. PIG does not resize cloud databases or change IAM and backup policies.

Before expanding beyond a pilot, measure compute and capacity, configure coordinated database and object-storage recovery, and confirm network access.

Finish installation by verifying a complete session. A ready pod or successful health check alone does not verify trace analysis.