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

No more github.actions.job.duration_second? #1087

Open
jduan-highnote opened this issue Apr 8, 2024 · 2 comments
Open

No more github.actions.job.duration_second? #1087

jduan-highnote opened this issue Apr 8, 2024 · 2 comments

Comments

@jduan-highnote
Copy link

We are using the latest version of this github action and I noticed that we stopped getting this metric github.actions.job.duration_second.

Here's our workflow file:

jobs:
  submit:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - uses: int128/datadog-actions-metrics@v1
        with:
          datadog-api-key: ${{ secrets.DATADOG_API_TOKEN  }}
          datadog-site: us5.datadoghq.com
          collect-job-metrics: true
          collect-step-metrics: false
          disable-distribution-metrics: true

Notice that we set disable-distribution-metrics to true because we have a lot of workflows and if we turn on disable-distribution-metrics, it will increase our Datadog cost by a lot.

Is there a way to get back the old github.actions.job.duration_second metric without distribution being turned on? Thanks!

@int128
Copy link
Owner

int128 commented Apr 21, 2024

I have reverted the deletion of gauge metrics such as github.actions.job.duration_second.

Since v1.86.0, this action sends the gauge metrics instead of the distribution metrics by default.
https://github.com/int128/datadog-actions-metrics/releases/tag/v1.86.0

Thank you for bringing up the cost issue.

@jduan-highnote
Copy link
Author

Nice! Thanks for getting this fixed. Much appreciated.

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

No branches or pull requests

2 participants