datadog-actions-metrics icon indicating copy to clipboard operation
datadog-actions-metrics copied to clipboard

No more github.actions.job.duration_second?

Open jduan-highnote opened this issue 10 months ago • 2 comments

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!

jduan-highnote avatar Apr 08 '24 17:04 jduan-highnote

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.

int128 avatar Apr 21 '24 02:04 int128

Nice! Thanks for getting this fixed. Much appreciated.

jduan-highnote avatar Apr 22 '24 17:04 jduan-highnote