# How to skip dimensions settings in serverless.yaml

**URL:** <https://forum.serverless.com/t/how-to-skip-dimensions-settings-in-serverless-yaml/5328>\
**Category:** Serverless Framework\
**Created:** [August 2, 2018, 2:48pm UTC](https://forum.serverless.com/t/how-to-skip-dimensions-settings-in-serverless-yaml/5328 "2018-08-02T14:48:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepakad](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@deepakad](https://forum.serverless.com/u/deepakad)\
**Post date:** [August 2, 2018, 2:48pm UTC](https://forum.serverless.com/t/how-to-skip-dimensions-settings-in-serverless-yaml/5328/1 "2018-08-02T14:48:26Z")

</div>

Hi,

I am trying to create alert for “SMSMonthToDateSpentUSD” using serverless-plugin-aws-alerts plugin. alarm is getting created, but its not correct. Its not pulling the data. When i looked deeper i found that “SMSMonthToDateSpentUSD” metrics is without dimensions. But when alarm is created through serverless plugin, dimension value is gettting set to my function name.

I am not setting any dimensions in serverless.yaml…but its getting set underneath somewhere. How do i tell serverless not to set those dimensions ?

Below is the same code :  
alerts:  
dashboards: true  
topics:  
alarm:  
topic:   
notifications:  
- protocol: email  
endpoint:   
definitions: # these defaults are merged with your definitions  
CustomLimit:  
description: ‘SNS Monthly Spend alarm’  
name: ‘SNSMonthlySpend’  
namespace: ‘AWS/SNS’  
metric: SMSMonthToDateSpentUSD  
threshold: 0.20 # Threshold  
statistic: p50  
period: 86400  
evaluationPeriods: 1 # Can’t be more than 1 day  
comparisonOperator: GreaterThanOrEqualToThreshold  
alarms:  
- CustomLimit

I think because dimension is getting set, its not populated the data.

From aws cloudwatch CLI if i dont set the dimension, its not getting set.

aws cloudwatch put-metric-alarm --alarm-name test-dev-from-cli --alarm-description “SNS Monthly Spend alarm” --metric-name SMSMonthToDateSpentUSD --namespace AWS/SNS --period 86400 --threshold 0.19 --comparison-operator GreaterThanThreshold --evaluation-periods 1 --extended-statistic p50

(Disclaimer : above serverless.yaml and CLI are still in development and not completed)
