Skip to content

Commit

Permalink
Update port-app-config.yaml for DD SLO History and Service Metric
Browse files Browse the repository at this point in the history
  • Loading branch information
ToddRizley authored Jan 16, 2025
1 parent aa5d599 commit abee2ed
Showing 1 changed file with 80 additions and 8 deletions.
88 changes: 80 additions & 8 deletions integrations/datadog/.port/resources/port-app-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
deleteDependentEntities: true
createMissingRelatedEntities: true
enableMergeEntity: true
resources:
- kind: sloHistory
selector:
query: 'true'
timeframe: 7
periodOfTimeInMonths: 6
port:
entity:
mappings:
identifier: .slo.id | tostring
title: .slo.name
blueprint: '"datadogSloHistory"'
properties:
monitory_type: .type
sampling_start_date: .from_ts | todate
sampling_end_date: .to_ts | todate
sliValue: .overall.sli_value
relations:
slo: .slo.id
- kind: user
selector:
query: 'true'
Expand All @@ -20,7 +39,7 @@ resources:
- kind: team
selector:
query: 'true'
includeMembers: 'true'
includeMembers: true
port:
entity:
mappings:
Expand All @@ -35,16 +54,15 @@ resources:
createdAt: .attributes.created_at | todate
relations:
members: if .__members then .__members[].id else [] end

- kind: host
selector:
query: "true"
query: 'true'
port:
entity:
mappings:
blueprint: '"datadogHost"'
identifier: .id | tostring
title: .aws_name // .host_name
blueprint: '"datadogHost"'
properties:
up: .up
host_name: .host_name
Expand All @@ -58,7 +76,7 @@ resources:
tags: .tags_by_source
- kind: monitor
selector:
query: "true"
query: 'true'
port:
entity:
mappings:
Expand All @@ -76,7 +94,7 @@ resources:
updatedAt: .modified
- kind: service
selector:
query: "true"
query: 'true'
port:
entity:
mappings:
Expand All @@ -102,7 +120,7 @@ resources:
value: .attributes.schema.team
- kind: slo
selector:
query: "true"
query: 'true'
port:
entity:
mappings:
Expand Down Expand Up @@ -131,9 +149,9 @@ resources:
port:
entity:
mappings:
blueprint: '"datadogCloudResource"'
identifier: .id | tostring
title: .aws_name // .host_name
blueprint: '"datadogCloudResource"'
properties:
up: .up
host_name: .host_name
Expand All @@ -145,3 +163,57 @@ resources:
cpu_cores: .meta.cpuCores
agent_version: .meta.agent_version
tags: .tags_by_source
- kind: serviceMetric
selector:
query: 'true'
datadogSelector:
metric: avg:system.mem.used
env:
tag: env
value: '*'
service:
tag: servicename
value: '*'
timeframe: 10
port:
entity:
mappings:
blueprint: '"datadogServiceMetric"'
identifier: .__query_id
title: .query
properties:
query: .__query
series: .series
res_type: .res_type
from_date: .from_date / 1000 | todate
to_date: .to_date / 1000 | todate
env: .__env
relations:
service: .__service
- kind: serviceMetric
selector:
query: 'true'
datadogSelector:
metric: avg:system.disk.used
env:
tag: env
value: prod
service:
tag: servicename
value: '*'
timeframe: 5
port:
entity:
mappings:
blueprint: '"datadogServiceMetric"'
identifier: .__query_id
title: .query
properties:
query: .__query
series: .series
res_type: .res_type
from_date: .from_date / 1000 | todate
to_date: .to_date / 1000 | todate
env: .__env
relations:
service: .__service

0 comments on commit abee2ed

Please sign in to comment.