forked from newrelic/entity-definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-entity-definition.yml
More file actions
63 lines (55 loc) · 2.84 KB
/
example-entity-definition.yml
File metadata and controls
63 lines (55 loc) · 2.84 KB
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
# [mandatory] The domain of an entity, default to EXT unless otherwise indicated by the maintainers.
domain: DOMAIN
# [mandatory] The type of an entity. Must be unique within its domain, but may be duplicated between domains.
# Please add a brief description of what your type is here on the definition file.
type: TYPE
# Entity definitions without this section are synthesized based on rules defined elsewhere.
synthesis:
# [mandatory] The name of a telemetry attribute that will be used as the id of the entity, so it needs to be unique,
# it can be the same field used for the name or not.
identifier: attributeNameA
# [mandatory] The name of a telemetry attribute that will be used as the name of the entity (i.e. k8s.cluster.name).
name: attributeNameA
# Set to true if the identifier is expected to be longer than our maximum allowed characters (see README guidelines), defaults to false
encodeIdentifierInGUID: false
# [mandatory] Condition that must be met for this entity to be synthesized.
# Please refer to the documentation to see the different types of conditions supported.
conditions:
# The attribute’s value must match the provided value
- attribute: attributeName
value: value
# Telemetry attributes that should be extracted into entity tags.
tags:
attributeNameB:
attributeNameC:
# If set to true, an entity tag contains all the values seen for this attribute in the telemetry.
# If set to false it will only contain the last one. Defaults to true
multiValue: false
attributeNameD:
# The key of the tag to be created with the value of the provided attribute. Defaults to the attribute name.
entityTagName: preferredTagName
# Template that can be used to generate a dashboard for the entity.
# If your telemetry comes from different providers you can specify a dashboard for each one of them, otherwise you can just use `newRelic`
dashboardTemplates:
newRelic:
template: dashboard.json
prometheus:
template: prometheus_dashboard.json
# Reference to the golden and/or summary metrics associated with the entity (if any).
compositeMetrics:
goldenMetrics:
- domain-type-golden_metrics.yml
summaryMetrics:
- domain-type-summary_metrics.yml
# The golden tags associated with the entity. They must be existing NewRelic tags which includes:
# - Tags extracted from telemetry attributes and defined here in the `tags` section.
# - Tags added to the entity through other means.
goldenTags:
- tagNameA
- tagNameB
# Additional configurations for a more granular control of the entity's behavior
configuration:
# The amount of time without receiving telemetry before an entity is deleted. Defaults to EIGHT_DAYS
entityExpirationTime: EIGHT_DAYS
# Defines whether the entities of this type should have an alert severity field associated, defaults to true
alertable: true