Skip to main content

Configs

Configs emit events when their health changes or when they are created, modified, or removed.

Health events

  • config.healthy
  • config.unhealthy
  • config.warning
  • config.unknown
ec2-health-notification.yaml
apiVersion: mission-control.flanksource.com/v1
kind: Notification
metadata:
name: ec2-instance-health-alerts
namespace: default
spec:
events:
- config.unhealthy
- config.warning
filter: config.type == 'AWS::EC2::Instance'
to:
email: alerts@acme.com

Default Template

The default notification template for health events is:

Title

{{ if ne channel "slack"}}{{.config.type}} {{.config.name}} is {{.config.health}}{{end}}

Template

Default content is generated from the notification payload in modules/mission-control/notification/message.go.

State events

  • config.created
  • config.updated
  • config.deleted
ec2-instance-updates.yaml
apiVersion: mission-control.flanksource.com/v1
kind: Notification
metadata:
name: ec2-instance-changes
namespace: default
spec:
events:
- config.created
- config.updated
- config.deleted
filter: config.type == 'AWS::EC2::Instance'
to:
email: alerts@acme.com

Default Template

Title

{{ if ne channel "slack"}}{{.config.type}} {{.config.name}} was {{.new_state}}{{end}}

Template

Default content is generated from the notification payload in modules/mission-control/notification/message.go.

Template Variables

FieldDescriptionScheme
agent

Details of the agent

Agent

channel

The notification channel, e.g. slack, email

string

config

Corresponding config item.

Config

groupedResources

A list of grouped resource names. Only available when notifications are grouped using waitFor.

[]string

new_state

The state change that triggered this event.

Only available on config state events (e.g. config.created, config.updated, config.deleted).

created | updated | deleted

permalink

A link to the resource in Mission Control

string

recent_events

Recent config changes from the last hour

[]string

silenceURL

A link to silence this notification

string

Config Item

FieldDescriptionScheme
config

Configuration

string

config_class

Class of the config item

string

created_at

Creation timestamp

time.Time

delete_reason

Reason for deletion

string

deleted_at

Deletion timestamp

time.Time

description

Description

string

external_id

External IDs

[]string

health

Health

Health

id

ID of the config item

uuid

labels

Labels

JSONStringMap

name

Name

string

properties

Properties

Properties

ready

Whether the config item is ready

boolean

scraper_id

ID of the scraper

string

source

Source

string

status

Status

string

tags

Tags

JSONStringMap

type

Type

string

updated_at

Update timestamp

time.Time

Agent

FieldDescriptionScheme
description

Short description of the agent

string

id

The id of the agent

uuid

name

The name of the agent

string