Submit a generic metric to DataDog
./submit-metric.sh -m <metric name> -v <metric value> -T <metric type> -t <ts> [tag1:value1] [tag2:value2]
-h
help
print usage and exit-m
metric name
REQUIRED-v
metric value
REQUIRED-T
metric type
optional, default0
-t
timestamp
optional, default: now- tags
optional (but encouraged) format should betag:value
- name: Checkout DD Metric Submitter
uses: actions/checkout@v3
with:
repository: hedenface/submit-datadog-metric
ref: 1.0.1
path: datadog
- name: Submit metric
continue-on-error: true
run: |
./datadog/submit-metric.sh -m my.metric -v 42 tag1:value1 tag2:value2 tag3:value3
env:
DD_API_KEY: ${{ secrets.datadog_api_key }}