-
Notifications
You must be signed in to change notification settings - Fork 3
/
catalog-info.yaml
90 lines (90 loc) · 3 KB
/
catalog-info.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: demo-backstage
description: Backstage Demo instance.
annotations:
backstage.io/kubernetes-id: kubernetescustom
dynatrace.com/guardian-tags: "service=my-service,stage=development,novalue"
dynatrace:
queries:
- id: Error Logs
description: Fetch Error Logs
query: >
fetch logs, from: -2d
| filter status == "ERROR"
| sort timestamp desc
| fieldsAdd content=if(isNull(content), "N/A", else: content)
| fieldsAdd source=if(isNull(log.source), "N/A", else: log.source)
| fieldsAdd host=if(isNull(host.name), "N/A", else: host.name)
| fieldsAdd environment = "${environmentName}"
| fieldsKeep timestamp, source, content, host, environment
- id: Problem Events
description: Fetch Problem Events
query: >
fetch events, from: -2d
| filter event.kind=="DAVIS_PROBLEM"
| fieldsAdd category=if(isNull(event.category), "N/A", else: event.category)
| fieldsAdd id=if(isNull(event.id), "N/A", else: event.id)
| fieldsAdd status=if(isNull(event.status), "N/A", else: event.status)
| fieldsAdd name=if(isNull(event.name), "N/A", else: event.name)
| fieldsAdd environment = "${environmentName}"
| fieldsKeep timestamp, category, id, name, status, environment
- id: Security Vulnerabilities
description: Fetch Security Vulnerabilities
query: >
fetch events, from: -2d
| filter event.provider=="Dynatrace"
| filter event.kind=="SECURITY_EVENT"
| filter event.type=="VULNERABILITY_STATUS_CHANGE_EVENT"
| filter event.level=="VULNERABILITY"
| fieldsAdd environment = "${environmentName}"
| fieldsKeep timestamp, event.status, vulnerability.display_id, event.id, vulnerability.title, vulnerability.risk.level, vulnerability.display_id, environment
spec:
type: website
owner: user:default/mjakl
lifecycle: experimental
system: integrations
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: nginx
description: Web Server
spec:
type: website
owner: user:default/mjakl
lifecycle: experimental
system: integrations
---
apiVersion: backstage.io/v1alpha1
kind: User
metadata:
name: mjakl
spec:
profile:
displayName: Michael Jakl
email: [email protected]
memberOf: [group:default/semanticlabs]
---
apiVersion: backstage.io/v1alpha1
kind: Group
metadata:
name: semanticlabs
description: Semanticlabs GmbH
spec:
type: partner
profile:
displayName: Semanticlabs GmbH
email: [email protected]
children: []
members: [mjakl]
---
apiVersion: backstage.io/v1alpha1
kind: System
metadata:
name: integrations
description: Dynatrace integrations for other systems.
spec:
owner: user:default/mjakl
type: service