Skip to content

Commit

Permalink
Add ci metrics origins (#31996)
Browse files Browse the repository at this point in the history
  • Loading branch information
CelianR authored Dec 18, 2024
1 parent 2470d04 commit e6ab5c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tasks/libs/common/datadog_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ def create_metric(metric_type, metric_name, timestamp, value, tags, unit=None, m
unit = unit or unset
metadata = unset

if metric_origin:
metadata = MetricMetadata(origin=MetricOrigin(**metric_origin))
origin_metadata = metric_origin or {
"origin_product": 10, # Agent
"origin_sub_product": 54, # Agent CI
"origin_product_detail": 64, # Gitlab
}
metadata = MetricMetadata(origin=MetricOrigin(**origin_metadata))

return MetricSeries(
metric=metric_name,
Expand Down

0 comments on commit e6ab5c0

Please sign in to comment.