DEV Community

Choonho Son
Choonho Son

Posted on

[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

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay