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

Add filtered-metrics option #1082

Closed
wants to merge 5 commits into from
Closed

Conversation

mlahargou
Copy link

@mlahargou mlahargou commented Apr 5, 2024

This adds a filtered-metrics option. Only metrics included in the multiline
string should be sent out.

I've added some tests for the new function, but let me know if you'd like more exhaustive tests.

Is included-metrics a better name?

Ref: #1081

@mlahargou
Copy link
Author

This can be used like:

         - name: Send metrics to Datadog
           uses: int128/datadog-actions-metrics@v1
           with:
              send-pull-request-labels: true
              collect-job-metrics: true
              collect-step-metrics: true
              filtered-metrics: |
                 github.actions.workflow_run.conclusion.failure_total
                 github.actions.workflow_run.duration_second.distribution
                 github.actions.job.conclusion.success_total
                 github.actions.job.conclusion.failure_total
                 github.actions.job.queued_duration_second.distribution
                 github.actions.job.duration_second.distribution
                 github.actions.step.conclusion.failure_total
                 github.actions.step.duration_second.distribution

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