postgres

package
v0.84.0-devel Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package postgres provides an Agent E2E integration component that runs a PostgreSQL 16 server plus a continuous SQL workload generator via Docker Compose on a remote host. It is used by the aws/integrations/postgres scenario to give the host-installed Datadog Agent's postgres check a live backend to monitor over TCP at localhost:5432.

Index

Constants

View Source
const (
	// MonitorUser is the PostgreSQL user the Datadog Agent connects as. It is
	// created by postgres-init.sql and granted pg_monitor.
	MonitorUser = "datadog"
	// MonitorPassword is the password for MonitorUser. Lab-only credential; it
	// matches the value seeded in postgres-init.sql and config/postgres.yaml.
	MonitorPassword = "datadog_monitor_pw"
	// MonitorDBName is the database the check connects to.
	MonitorDBName = "labdb"
	// MonitorPort is the TCP port the server is published on (host loopback).
	MonitorPort = 5432
)

Monitoring connection facts shared with the scenario so the Agent check configuration stays in sync with the seeded database.

Variables

This section is empty.

Functions

func NewDockerCompose

func NewDockerCompose(manager *docker.Manager) (docker.ComposeInlineManifest, []pulumi.Resource, error)

NewDockerCompose stages the seed SQL and workload script on the host and returns a Compose manifest that runs PostgreSQL 16 and the workload generator. The returned resources must be set as Compose dependencies (the docker agent params / manager handle that) so the bind-mounted files exist before the stack starts.

The manifest binds the staged files via absolute host paths, so it is independent of the Compose working directory chosen by the docker manager.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL