postgres

package
v0.85.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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