Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not seeing HTTPCode_ELB_*_Count metrics. #302

Open
rmccarthy-ellevation opened this issue Jan 20, 2021 · 4 comments
Open

Not seeing HTTPCode_ELB_*_Count metrics. #302

rmccarthy-ellevation opened this issue Jan 20, 2021 · 4 comments

Comments

@rmccarthy-ellevation
Copy link

We are trying to get the metrics defined below from CW for our ALBs. Even though we are seeing metrics for these in the AWS CW Metrics dashboard and all of the resources are tagged, we are not getting anything besides tg metrics. We are using the latest version of YACE, and our configuration should be correct. Any thoughts?

discovery:
  exportedTagsOnMetrics:
    ec2:
      - Name
  jobs:
  - type: alb
    length: 300
    regions:
      - us-east-1
    metrics:
     - name: HTTPCode_ELB_4XX_Count
        statistics:
          - Average
          - Sum
        period: 60
        length: 300
      - name: HTTPCode_ELB_5XX_Count
        statistics:
          - Average
          - Sum
        period: 60
        length: 300
      - name: HTTPCode_ELB_3XX_Count
        statistics:
          - Average
          - Sum
        period: 60
        length: 300
@zswanson
Copy link
Contributor

zswanson commented Feb 1, 2021

Same thing, I'm using 0.25-alpha and the HTTPCode_ELB metrics are not reported, using a similar config. I have nilToZero: true set though, which I would expect would report the metric as 0 regardless? (nvm I see there's some discussion in the issues about how that is handled)

@zswanson
Copy link
Contributor

zswanson commented Feb 12, 2021

Trying to debug this a bit ... it certainly works from the CLI

$ aws cloudwatch list-metrics --namespace AWS/ApplicationELB --metric-name HTTPCode_ELB_5XX_Count
{
    "Metrics": [
        {
            "Namespace": "AWS/ApplicationELB",
            "MetricName": "HTTPCode_ELB_5XX_Count",
            "Dimensions": [
                {
                    "Name": "LoadBalancer",
                    "Value": "app/my-alb/1234567890"
                }
            ]
        },

Best I can tell, after inserting a lot of debug output, is that everything looks fine right up until the point that the query to cloudwatch with the ListMetricPages function is called.

@vladkolodny
Copy link

with the same confiugration I am getting aws_alb_tg_httpcode_target_5_xx_count_sum
seems like it changed in 0.25a

@zswanson
Copy link
Contributor

You're right, I pulled 0.24-alpha today and I'm seeing elb_3_xx and elb_4_xx metrics collected by yace. Something does seem to have been impacted in the 0.25 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants