1

I am trying to create a cloudwatch alarm as below:

  503AlarmELB:
    Type: AWS::CloudWatch::Alarm
    DeletionPolicy: Retain
    Properties:
      AlarmDescription: "503 HTTP CODE Count is higher than 20"
      # AlarmName: !Join ["-", [ !Ref Namespace, !Ref Environment, "ALB-HTTPCode_ELB_503_Count" ]]
      AlarmActions:
      - Ref: ManagedCloudSNSTopic
      MetricName: "HTTPCode_ELB_503_Count"
      Namespace: TriAppsTestV2ApplicationELB
      Statistic: Average
      Period:
        Ref: 503AlarmPeriod
      EvaluationPeriods: 
        Ref: 503AlarmEvaluationPeriods
      Threshold: 
        Ref: 503AlarmThreshold
      ComparisonOperator: GreaterThanOrEqualToThreshold
      Dimensions:
      - Name: InternalALB
        Value:
          Ref: InternalAlbFullName

And in the Namespace I have given the value TriAppsTestV2ApplicationELB. But I cannot see this in the metrics section of the CloudWatch service. How can I find this Namespace ?

Jananath Banuka
  • 2,951
  • 8
  • 57
  • 105

1 Answers1

1

The namespace for that matric is (from docs):

Namespace: AWS/ApplicationELB
Marcin
  • 215,873
  • 14
  • 235
  • 294
  • Hi, I thought when I give it a random name, it would create a new namespace by that name. But with my approach, It didn't create a new namespace nor gave an error – Jananath Banuka Dec 26 '21 at 18:41
  • @JananathBanuka I can't be random name. It must be what I wrote it should be. – Marcin Dec 27 '21 at 02:28