[Cloudforet] Enable AWS Cloud Watch Plugin

choonho

Choonho Son

Posted on March 15, 2024

[Cloudforet] Enable AWS Cloud Watch Plugin

If your cloudwatch plugin is not working, please enable cloudwatch plugin manually.

Check AWS CloudWatch

root@spacectl-c546c4d8c-qz7m9:~# spacectl list monitoring.DataSource --minimal
 data_source_id   | name                    | state   | monitoring_type   | provider
------------------+-------------------------+---------+-------------------+--------------
 ds-b12ac2817e66  | Azure Activity Log      | ENABLED | LOG               | azure
 ds-3a69e687f1ff  | Azure Monitor           | ENABLED | METRIC            | azure
 ds-2bc4b0250e87  | Google Cloud Monitoring | ENABLED | METRIC            | google_cloud
Enter fullscreen mode Exit fullscreen mode

If not exist,

Register in spacectl POD

create a yaml file
filename: cloudwatch.yaml

---
name: AWS CloudWatch
plugin_info:
  plugin_id: plugin-aws-cloudwatch-mon-datasource
  provider: aws
Enter fullscreen mode Exit fullscreen mode

Execute spacectl command

spacectl exec register monitoring.DataSource -f cloudwatch.yaml
Enter fullscreen mode Exit fullscreen mode

The output looks like

root@spacectl-c546c4d8c-qz7m9:~# spacectl exec register monitoring.DataSource -f cloudwatch.yaml
---
capability:
  monitoring_type: METRIC
  supported_schema:
  - aws_access_key
  - aws_assume_role
  - aws_assume_role_with_external_id
  use_resource_secret: true
created_at: '2024-03-15T11:36:20.354Z'
data_source_id: ds-0647f82fed26
domain_id: domain-90b77069565d
monitoring_type: METRIC
name: AWS CloudWatch
plugin_info:
  metadata:
    required_keys:
    - data.cloudwatch
    supported_providers:
    - aws
    supported_stat:
    - AVERAGE
    - MAX
    - MIN
    - SUM
  options: {}
  plugin_id: plugin-aws-cloudwatch-mon-datasource
  provider: aws
  upgrade_mode: AUTO
  version: 1.2.5
provider: aws
state: ENABLED
tags: {}
Enter fullscreen mode Exit fullscreen mode

ETC, cloudtrail plugin

filename: cloudtrail.yaml

---
name: AWS CloudTrail
plugin_info:
  plugin_id: plugin-aws-cloudtrail-mon-datasource
  provider: aws
Enter fullscreen mode Exit fullscreen mode

Execute spacectl command

spacectl exec register monitoring.DataSource -f cloudtrail.yaml
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
choonho
Choonho Son

Posted on March 15, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related