datadog-actions-metrics
datadog-actions-metrics copied to clipboard
No more github.actions.job.duration_second?
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!
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.
Nice! Thanks for getting this fixed. Much appreciated.