Skip to content

[BUG] exporter can't collect tagged MSK Connect (KafkaConnect) #1492

Open
@gaetanars

Description

@gaetanars

Is there an existing issue for this?

  • I have searched the existing issues

YACE version

v0.61.2

Config file

apiVersion: v1alpha1
discovery:
  jobs:
    - type: AWS/KafkaConnect
      roles:
        - roleArn: "arn:aws:iam::xxxxxxxxxxxx:role/CloudWatchRead"
          externalId: "myExternalID"
      regions:
        - eu-west-3
      period: 300
      length: 300
      metrics:
        - name: BytesInPerSec
          statistics: [Average]
        - name: BytesOutPerSec
          statistics: [Average]
        - name: CpuUtilization
          statistics: [Average]
        - name: ErroredTaskCount
          statistics: [Maximum]
        - name: MemoryUtilization
          statistics: [Average]
        - name: RebalanceCompletedTotal
          statistics: [Maximum]
        - name: RebalanceTimeAvg
          statistics: [Average]
        - name: RebalanceTimeMax
          statistics: [Maximum]
        - name: RebalanceTimeSinceLast
          statistics: [Average]
        - name: RunningTaskCount
          statistics: [Maximum]
        - name: SinkRecordReadRate
          statistics: [Average]
        - name: SinkRecordSendRate
          statistics: [Average]
        - name: SourceRecordPollRate
          statistics: [Average]
        - name: SourceRecordWriteRate
          statistics: [Average]
        - name: TaskStartupAttemptsTotal
          statistics: [Maximum]
        - name: TaskStartupSuccessPercentage
          statistics: [Average]
        - name: WorkerCount
          statistics: [Maximum]

Current Behavior

Error log :

{"account":"xxxxxxxxxxxx","arn":"arn:aws:iam::xxxxxxxxxxxx:role/CloudWatchRead","caller":"discovery.go:40","err":"expected to discover resources but none were found","job_type":"AWS/KafkaConnect","level":"error","msg":"No tagged resources made it through filtering","region":"eu-west-3","ts":"2024-08-05T13:18:53.537750656Z","version":"v0.61.2"}

My MSK Connect already have some tags.
My IAM role work with another AWS resources (like EC2 or CloudFront)

Expected Behavior

I want to collect KafkaConnect metrics

Steps To Reproduce

No response

Anything else?

May be KafkaConnect can't be requested in the Resource Groups Tagging API from AWS ?

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