Skip to content

How to use monitorCustom #181

Discussion options

You must be logged in to vote

We need to write some more documentation for it (#153).

In general, you can just pass in some metrics like so:

this.facade.monitorCustom({
    alarmFriendlyName: 'My-Custom-Alarm',
    description: 'Sample custom alarm',
    metricGroups: [
        {
            title: 'Errors-Sum',
            metrics: [
                {
                    alarmFriendlyName: 'UnknownError-Sum',
                    metric: new Metric({
                        // cf. whatever you have in Cloudwatch metrics
                        namespace: 'MyNameSpace',
                        metricName: 'AnError',
                        statistic: MetricStatistic.SUM,
                        dimensionsMap: {

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@wernermorgenstern
Comment options

@echeung-amzn
Comment options

@voho
Comment options

Answer selected by ayush987goyal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants