forked from newrelic/entity-definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-entity-definition.yml
51 lines (43 loc) · 2.18 KB
/
example-entity-definition.yml
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
# [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.
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 name of the entity (i.e. k8s.cluster.name).
name: attributeNameA
# [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
# Set to true if the identifier is expected to be longer than our maximum allowed characters (see README guidelines), defaults to false
encodeIdentifierInGUID: false
# Condition that must be met for this entity to be synthesized.
# Can be added if the attribute used for the identifier is too generic to differentiate this entity from others
# 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
# Tags associated with the entity that can be extracted from the telemetry attributes.
tags:
- attributeNameB
- attributeNameC
# Template that can be used to generate a dashboard for the entity.
dashboardTemplates:
- ./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