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

feat: Add support for Redshift-Serverless #1589

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nickbazinet
Copy link

Add support for scraping Redshift-Serverless metrics.

When I queried the /metrics endpoint, I was able to view the expected metrics:
image

This is my first PR on this project and I am not 100% sure about the ResourceFilters in services.go, but based on my understanding it seems proper.
Feedback is then appreciated :)

This was based on this config:

 jobs:
  - type: AWS/Redshift-Serverless
    regions: *regions
    roles: *masterArns
    enableMetricData: true
    metrics:
      - name: DatabaseConnections
        statistics:
          - Average
        period: 60
        length: 60
        nilToZero: true
      - name: ComputeCapacity
        statistics:
          - Average
        period: 60
        length: 60
        nilToZero: true
      - name: QueriesCompletedPerSecond
        statistics:
          - Average
        period: 60
        length: 60
        nilToZero: true
      - name: ComputeSeconds
        statistics:
          - Average
        period: 60
        length: 60
        nilToZero: true
      - name: QueriesFailed
        statistics:
          - Average
        period: 60
        length: 60
        nilToZero: true
      - name: QueriesQueued
        statistics:
          - Average
        period: 60
        length: 60
        nilToZero: true
      - name: QueriesRunning
        statistics:
          - Average
        period: 60
        length: 60
        nilToZero: true
      - name: QueriesSucceeded
        statistics:
          - Average
        period: 60
        length: 60
        nilToZero: true
    exportedTagsOnMetrics: *masterTags

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

Successfully merging this pull request may close these issues.

1 participant