eiel / datadog-dora-metrics-deployments-action

DORA Metrics action in DataDog software Delivery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DataDog DORA metrics deploment action

This action is send deployment event to DataDog DORA Metrics

Inputs

datadog-api-key

Required API Access Key for DataDog. https://app.datadoghq.com/organization-settings/api-keys

datadog-service-name

Servirce name in DataDog.

see: https://docs.datadoghq.com/ja/getting_started/tagging/unified_service_tagging/

datadog-env

Env Name in DataDog.

see https://docs.datadoghq.com/ja/getting_started/tagging/unified_service_tagging/

started-at

Required deployment start time (sec)

finished-at

deloyment finish time (sec)

git-repository-url

unimplement

git repository url of deployment. default current repository.

git-commit-sha

unimplement

git commit sha of deployment. default current commit sha.

Example usage

steps:
  - id: deploy-start
    name: record deploy start time
    run: echo unix-time="$(date +%s)" >> "${GITHUB_OUTPUT}"

  - run: xxxxxxxxx # delivery code

  - uses: eiel/datadog-dora-metrics-deployment@v0.0.2
    with:
      datadog-service-name: "your service"
      datadog-api-key: ${{ secrets.DD_API_KEY }}
      datadog-env: "production"
      started-at: ${{ steps.deploy-start.outputs.unix-time }}

Links

About

DORA Metrics action in DataDog software Delivery

License:Apache License 2.0


Languages

Language:Nix 61.1%Language:Dockerfile 25.6%Language:Shell 13.3%