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

AWS/EC2/API is still throwing error #1539

Open
1 task done
elsaboori opened this issue Oct 10, 2024 · 1 comment
Open
1 task done

AWS/EC2/API is still throwing error #1539

elsaboori opened this issue Oct 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@elsaboori
Copy link

elsaboori commented Oct 10, 2024

Is there an existing issue for this?

  • I have searched the existing issues

YACE version

0.61.2

Config file

apiVersion: v1alpha1
sts-region: us-east-1
discovery:
    exportedTagsOnMetrics:
        AWS/EC2:
            - Name
            - app_group
    jobs:
        - type: "AWS/EC2/API"
          regions:
            - us-east-1
          period: 60
          length: 600
          metrics:
              - name: ClientErrors
                statistics: [ Sum ]
              - name: RequestLimitExceeded
                statistics: [ Sum ]
              - name: ServerErrors
                statistics: [ Sum ]
              - name: SuccessfulCalls
                statistics: [ Sum ]
        - type: AWS/EC2
          regions:
              - us-east-1
          period: 60
          length: 600
          metrics:
              - name: CPUUtilization
                statistics: [ Average ]
              - name: DiskReadOps
                statistics: [ Average ]
              - name: DiskWriteOps
                statistics: [ Average ]
              - name: DiskReadBytes
                statistics: [ Average ]
              - name: DiskWriteBytes
                statistics: [ Average ]
              - name: EBSByteBalance%
                statistics: [ Average ]
              - name: EBSIOBalance
                statistics: [ Average ]
              - name: EBSReadOps
                statistics: [ Average ]
              - name: EBSWriteOps
                statistics: [ Average ]
              - name: GPUMemoryUsage
                statistics: [ Average ]
              - name: NetworkAddressUsage
                statistics: [ Average ]
              - name: StatusCheckFailed_Instance
                statistics: [ Sum ]
              - name: StatusCheckFailed_System
                statistics: [ Sum ]
              - name: StatusCheckFailed
                statistics: [ Sum ]

Current Behavior

Getting error
{"caller":"main.go:67","err":"Couldn't read /service-config/config.yml: Discovery job [0]: Service is not in known list!: AWS/EC2/API","level":"error","msg":"Error running yace","ts":"2024-10-10T01:01:49.953520682Z","version":"v0.61.2"}

Expected Behavior

It seems like it was addressed on v0.13.04
But I still get error
It all work well when I remove the "AWS/EC2/API" section

Steps To Reproduce

No response

Anything else?

Is there any other way I need address this?

@elsaboori elsaboori added the bug Something isn't working label Oct 10, 2024
@elsaboori
Copy link
Author

elsaboori commented Oct 10, 2024

Ok, I see it's not in the list of supported services and I was able to get the metrics adding it to customNamespace and successfully get the metrics.
So it's a feature request and not a bug.

apiVersion: v1alpha1
sts-region: us-east-1
customNamespace:
  - name: customMetrics
    namespace: AWS/EC2/API
    regions:
        - us-east-1
    metrics:
      - name: ClientErrors
        statistics: [ Sum ]
      - name: RequestLimitExceeded
        statistics: [ Sum ]
      - name: ServerErrors
        statistics: [ Sum ]
      - name: SuccessfulCalls
        statistics: [ Sum ]

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant