AlertManagerDefinition
Source:
src/AWS/AMP/AlertManagerDefinition.ts
The Alertmanager definition for an Amazon Managed Service for Prometheus workspace — configures how firing alerts are grouped, routed, and dispatched to receivers (SNS, etc.). A workspace has at most one.
Creating an Alert Manager Definition
Section titled “Creating an Alert Manager Definition”const workspace = yield* AMP.Workspace("Metrics", {});const alerts = yield* AMP.AlertManagerDefinition("Alerts", { workspaceId: workspace.workspaceId, definition: `alertmanager_config: | route: receiver: default receivers: - name: default`,});