devhelm.yml files, suggest assertions, and help you maintain monitoring configs as your infrastructure evolves.
Generating configs from scratch
Describe your infrastructure and let the AI create a monitoring config:“I have a REST API at api.example.com with /health, /v1/users, and /v1/orders endpoints. Create a DevHelm config that monitors all three with appropriate assertions.”An AI assistant with access to DevHelm’s MCP tools or YAML schema knowledge can produce:
Reviewing and improving existing configs
Share your currentdevhelm.yml and ask for improvements:
“Review this config. Are there any gaps in monitoring coverage or assertions that could reduce false positives?”The AI can identify:
- Missing assertions — endpoints without response time checks
- Inconsistent frequencies — critical and non-critical services at the same interval
- Missing alerting — monitors without notification policies
- Coverage gaps — services mentioned in code but not monitored
Maintaining configs as code evolves
When you add new API endpoints, the AI can update your monitoring config:“I just added a /v1/payments endpoint. Add a monitor with the same pattern as the existing ones, but check every 30 seconds since it’s payment-critical.”This keeps monitoring in sync with your codebase without manual editing.
Best practices for AI-assisted config
Always validate
Rundevhelm validate on any AI-generated config before deploying:
Use plan before deploy
Preview changes before applying them:Keep humans in the loop
AI-generated configs are a starting point. Review:- Are the assertions appropriate for each endpoint?
- Are the frequencies correct for the service criticality?
- Are secrets referenced correctly (not hardcoded)?
- Are the right alert channels attached?
Version control everything
Commit AI-generated configs to Git like any other code change. This gives you review through PRs and rollback through Git history.Workflow: AI agent + MaC
The most powerful pattern combines AI agents with monitoring-as-code workflows:- Agent generates config based on your description
- You review the generated YAML in a PR
- CI validates with
devhelm validate - CI previews with
devhelm plan --detailed-exitcode - You approve the PR
- CI deploys with
devhelm deploy --yes
YAML file format
Complete YAML schema reference.
MCP Server
Connect your AI agent to DevHelm.