devhelm_monitor resource creates and manages monitors of any type. Configure assertions, incident policies, and scheduling in HCL.
Basic example
Arguments
Top-level
Computed attributes
assertions block
Repeatable block for pass/fail criteria. The block name isassertions (plural); repeat it once per assertion:
incident_policy attribute
Single nested attribute (use= assignment, not a block) controlling confirmation and recovery behavior. Omit it entirely to adopt server defaults; supplying any field overrides the policy in full.
trigger_rules[*] object:
The provider enforces these conditional requirements at plan time.
Config by monitor type
Theconfig attribute accepts JSON. The shape depends on type:
Full example with assertions and incident policy
Import
Next steps
Alert channels
devhelm_alert_channel resource reference.
Tags
devhelm_tag resource reference.
Data sources
Reference existing resources without managing them.