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

[FEATURE] Add support of CloudWatchSynthetics in discovery mode #1519

Open
1 task done
bawk3 opened this issue Sep 5, 2024 · 2 comments
Open
1 task done

[FEATURE] Add support of CloudWatchSynthetics in discovery mode #1519

bawk3 opened this issue Sep 5, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@bawk3
Copy link

bawk3 commented Sep 5, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Feature description

I would like to have ability to export metrics of my CW Canaries. For now I can do it in static mode. If I try to configure in discovery mode then I get error
{"caller":"main.go:67","err":"Couldn't read /tmp/config.yml: Discovery job [0]: Service is not in known list!: CloudWatchSynthetics","level":"error","msg":"Error running yace","ts":"2024-08-30T13:11:04.404326176Z","version":"v0.61.2"}

What might the configuration look like?

discovery:
  exportedTagsOnMetrics:
    CloudWatch:
      - Name
  jobs:
    - type: "CloudWatchSynthetics"
      regions:
        - "eu-central-1"  # Specify the AWS region where your Canary is running
      metrics:
        - namespace: "CloudWatchSynthetics"
          name: "Duration"
          dimensions:
            - "CanaryName"
            -  "StepName"
          statistics:
            - "Average"

Anything else?

No response

@bawk3 bawk3 added the enhancement New feature or request label Sep 5, 2024
@wanieldilson
Copy link

@bawk3 how are you dealing with CloudWatchSynthetics right now? Custom namespace?

@bawk3
Copy link
Author

bawk3 commented Oct 1, 2024

Hi @wanieldilson
For now using static config and specify manually each Canary and step
like this

apiVersion: v1alpha1
static:
  - namespace: CloudWatchSynthetics
    name: Canary1Step1
    regions:
      - eu-central-1
    dimensions:
      - name: "CanaryName"
        value: "canary1"
      - name: "StepName"
        value: "step1"
    metrics:
      - name: Duration
        statistics:
        - Average
        period: 60
        length: 86400
        delay: 300
  - namespace: CloudWatchSynthetics
    name: Canary1Step2
    regions:
      - eu-central-1
    dimensions:
      - name: "CanaryName"
        value: "canary1"
      - name: "StepName"
        value: "step2"
    metrics:
      - name: Duration
        statistics:
        - Average
        period: 60
        length: 86400
        delay: 300
  - namespace: CloudWatchSynthetics
    name: Canary2Step1
    regions:
      - eu-central-1
      - us-east-1
    dimensions:
      - name: "CanaryName"
        value: "Canary2"
      - name: "StepName"
        value: "step1"
    metrics:
      - name: Duration
        statistics:
        - Average
        period: 60
        length: 86400
        delay: 300

Would like to have possibility not to edit config after adding new canary or step.

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

No branches or pull requests

2 participants