postgres

package
v0.83.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package postgres contains the aws/postgres Agent E2E scenario: a single EC2 host running the host-installed Datadog Agent plus a PostgreSQL 16 Docker workload that the postgres integration monitors over TCP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx *pulumi.Context, awsEnv aws.Environment, env outputs.HostOutputs, params *Params) error

Run provisions the aws/postgres environment: an EC2 host with Docker, a PostgreSQL 16 + workload Compose stack, and the host-installed Datadog Agent configured with the postgres integration pointed at localhost:5432.

func VMRun

func VMRun(ctx *pulumi.Context) error

VMRun is the pulumi entry point for the aws/postgres scenario.

Types

type Option

type Option func(*Params) error

Option mutates Params.

func WithAgentOptions

func WithAgentOptions(opts ...agentparams.Option) Option

WithAgentOptions appends host Agent options.

func WithEC2VMOptions

func WithEC2VMOptions(opts ...ec2.VMOption) Option

WithEC2VMOptions appends EC2 VM options.

func WithInstanceType

func WithInstanceType(instanceType string) Option

WithInstanceType overrides the EC2 instance type.

func WithName

func WithName(name string) Option

WithName sets the host resource name.

func WithoutAgent

func WithoutAgent() Option

WithoutAgent disables installing the host Agent.

type Params

type Params struct {
	Name string
	// contains filtered or unexported fields
}

Params contains the parameters for the aws/postgres scenario.

func GetParams

func GetParams(opts ...Option) (*Params, error)

GetParams returns Params from the option setters.

func ParamsFromEnvironment

func ParamsFromEnvironment(e aws.Environment) *Params

ParamsFromEnvironment builds Params from the AWS environment ConfigMap flags, mirroring the conventions used by the aws/dockervm and aws/vm scenarios.

Jump to

Keyboard shortcuts

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