Skip to content

AWS/EC2/API is still throwing error #1539

Open
@elsaboori

Description

@elsaboori

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions