Drone plugins > Datadog

The plugin can be used to send events and metrics to Datadog from a drone pipeline.

Example

kind: pipeline
name: default

steps:
- name: count-pipeline
  image: masci/drone-datadog
  settings:
    api_key:
      from_secret: datadog_api_key
    metrics:
      - type: "count"
        name: "masci.pipelines.count"
        value: 1.0
        tags: ["project:${DRONE_REPO_NAME}", "branch:${DRONE_BRANCH}"]

Properties

  • api_key

    stringoptional

    Datadog API key.

    Secret recommended

    Default: none

  • dry_run

    booleanoptional

    When set to true, the plugin only computes metrics and events without sending anything to the Datadog intake. When the plugin runs in dry mode, it doesn't require an api_key to be set, useful for testing.

    Default: false

  • metrics

    arrayoptional

    A list of metrics to be sent to Datadog. A metric must have a name and a value; type defaults to gauge; tags and hostname are optional.

    Default: none

  • events

    arrayoptional

    A list of events to be sent to Datadog. An event must have a title and a text; alert_type defaults to info.

    Default: none