4.33.4 • Published 9 days ago

@rio-cloud/cdk-v2-constructs v4.33.4

Weekly downloads
-
License
Apache-2.0
Repository
bitbucket
Last release
9 days ago

RIO CDK Constructs

This package contains CDK2 constructs for RIO teams.

NPM: @rio-cloud/cdk-v2-constructs

Bootstrapping of CDK project

$ npx cdk init --language typescript

Installation

$ npm install --save @rio-cloud/cdk-v2-constructs

See also

Internal documentation for library devs

Documentation

Constructs overview (Under construction...)

Watchful

Watchful constructs help generate some default monitors based on the resouces defined in your stack. Eg - If your stack contains a lambda function and you configure watchful construct, then it will create out of box metric monitors for Throttling, Lambda error and Log error monitors. The ever growing list of resources that watchful creates monitors for as of today are:

  • Application load balancer
  • Cloudfront
  • Documentdb
  • Dynamodb
  • Fargate
  • Lambda
  • RDS

Simply add the following to your CDK stack to get started.

  import * as rio from '@rio-cloud/cdk-v2-constructs';
    ...
    const dw = new rio.watchfulv2.Watchful(this, 'Watchful', {
      serviceName,
    });
    dw.watchScope(this); // Generates alarms for all supported resources
    ...

There are options to override some defaults too. Please be aware that the library is very opinionated and is written with the most general use cases in mind. It is necessary to keep the use of the library simple enough, which means that there is only limited flexibility regarding the configuration options. Having said that, feel free to reach out to team CLAID over slack #rio-platform-support in case of feature requests.

The broad classification of the monitors created by watchful are

  • Log error monitors
  • Metrics Query monitors: Basically everything other than log error monitors

For Metrics query monitors, you can configure the priority (defaults as 3). For log error monitors, you can cpnfigure priority, renototification interval and can configure if the auto close of the monitor is disabled.

    ...
    const dw = new Watchful(stack, 'Watchful2', { 
      logErrorMonitorConfig: {
        disableAutoClose: true, 
        renotifyInterval: 150,
        priority: 4,
      },
      queryErrorMonitorConfig: {
        priority: 4
      }
    });
    dw.watchScope(stack);

There is an overrideAlarmThreshold method which can be used to override the default watchful thresholds. Please make aure to use the method before the watchscope function. Eg -

...
const dw = new Watchful(stack, 'Watchful', {});
dw.overrideAlarmThreshold({
  monitoredResourceScope: lambdaA,
  monitorType: MonitorType.ERRORS,
  threshold: 5,
});
dw.watchScope(stack);
4.33.4

9 days ago

4.33.2

16 days ago

4.33.1

17 days ago

4.33.0

24 days ago

4.32.0

1 month ago

4.31.2

1 month ago

4.31.1

2 months ago

4.31.0

2 months ago

4.30.0

2 months ago

4.29.1

2 months ago

4.29.0

3 months ago

4.28.0

3 months ago

4.27.0

3 months ago

4.26.0

3 months ago

4.25.0

3 months ago

4.24.1

3 months ago

4.24.0

3 months ago

4.23.1

4 months ago

4.23.0

4 months ago

4.22.0

5 months ago

4.16.0

10 months ago

4.16.1

10 months ago

4.18.0

8 months ago

4.16.2

10 months ago

4.21.1

6 months ago

4.21.0

6 months ago

4.12.0

11 months ago

4.14.0

10 months ago

4.19.0

7 months ago

4.15.0

10 months ago

4.13.2

10 months ago

4.15.1

10 months ago

4.17.0

9 months ago

4.15.2

10 months ago

4.17.1

9 months ago

4.20.0

6 months ago

4.13.0

10 months ago

4.13.1

10 months ago

4.11.0

11 months ago

4.10.1

12 months ago

4.10.0

1 year ago

4.9.0

1 year ago

4.6.0

1 year ago

4.8.0

1 year ago

4.7.0

1 year ago

4.5.0

1 year ago

4.4.3

1 year ago

4.5.1

1 year ago

4.4.1

1 year ago

4.3.1

1 year ago

4.4.2

1 year ago

4.3.0

1 year ago

4.2.0

1 year ago

2.7.0

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

4.1.0

1 year ago

4.0.1

2 years ago

4.1.1

1 year ago

4.0.2

2 years ago

2.6.1

2 years ago

2.6.0

2 years ago

2.6.2

2 years ago

2.5.8

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.5.0

2 years ago

2.4.1

2 years ago

2.3.2

2 years ago

2.4.0

2 years ago

2.3.1

2 years ago

2.5.2

2 years ago

2.5.1

2 years ago

2.4.2

2 years ago

2.3.3

2 years ago

2.5.4

2 years ago

2.5.3

2 years ago

2.5.6

2 years ago

2.5.5

2 years ago

2.5.7

2 years ago

2.0.3

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.6

2 years ago

2.1.0

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.1-alpha.0

2 years ago