Skip to content

LoggingConfiguration

Source: src/AWS/AMP/LoggingConfiguration.ts

The rules/alerting logging configuration of an Amazon Managed Service for Prometheus workspace — ships rule evaluation failures and Alertmanager delivery errors to a CloudWatch Logs log group. A workspace has at most one.

const workspace = yield* AMP.Workspace("Metrics", {});
const logs = yield* Logs.LogGroup("AmpLogs", {
logGroupName: "/aws/vendedlogs/prometheus/metrics",
});
const logging = yield* AMP.LoggingConfiguration("Logging", {
workspaceId: workspace.workspaceId,
logGroupArn: logs.logGroupArn,
});