Skip to content

CloudWatch

This checks Cloudwatch for all the Active alarms and responses with the corresponding reasons for each.

apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
  name: cloudwatch-check
spec:
  interval: 30
  cloudwatch:
    - name: cloudwatch-check
      accessKey:
        valueFrom:
          secretKeyRef:
            key: AWS_ACCESS_KEY_ID
            name: aws-credentials
      secretKey:
        valueFrom:
          secretKeyRef:
            key: AWS_SECRET_ACCESS_KEY
            name: aws-credentials
      region: "us-east-1"
      #skipTLSVerify: true
Field Description Scheme Required
accessKey Access key value or valueFrom configMapKeyRef or SecretKeyRef to access your cloudwatch kommons.EnvVar Yes
description Description for the check string
display Template to display the result in Template
endpoint Cloudwatch HTTP Endpoint to establish connection string
filter Used to filter the objects CloudWatchFilter
icon Icon for overwriting default icon on the dashboard string
name Name of the check string
region Region for cloudwatch string
secretKey Secret key value or valueFrom configMapKeyRef or SecretKeyRef to access cloudwatch kommons.EnvVar Yes
skipTLSVerify Skip TLS verify when connecting to aws bool
test Template to test the result against Template

Scheme Reference

CloudWatchFilter

Field Description Scheme Required
actionPrefix Use to filter the results of the operation to only those alarms that use a certain alarm action. For example, you could specify the ARN of an SNS topic to find all alarms that send notifications to that topic. string
alarmPrefix Specify to receive information about all alarms that have names that start with this prefix. string
alarms Set field to retrieve information about alarm []string
state Specify to retrieve state value of alarm string