HierarchyMap Definition
Displays service or resource hierarchies grouped by attributes with health indicators.
Kind: HierarchyMap
For editor instructions, see Configure a Hierarchy Map.
Spec Properties
| Property | Type | Required | Description |
|---|---|---|---|
show | string | Yes | Resource attribute whose values define the displayed items. Resources without this attribute are excluded. The editor defaults to service.namespace. |
groupBy | array of string | Yes | Resource attributes used to group items into a hierarchy. Use [] for no grouping. The editor lets you select one grouping attribute. |
filter | array | No | Filter criteria that restrict the resources included in the map. Defaults to no additional filters. |
sortGroups | string — enum: name, health | No | Group sort preference. name compares labels; health prioritizes groups with more critical and degraded failed checks. Defaults to name. |
sortItems | string — enum: name, health | No | Item sort order. name compares labels; health puts items with more critical and degraded failed checks first, with name as a tie-breaker. Defaults to name. |
visual | object with keys: showSummary | No | Set showSummary to false to hide health summary counts below the map or its groups. The summary is shown by default. |
variables | array | No | Dashboard variable selections applied as resource filters in addition to filter. See variableSelections below. |
The top-level layout places groups with more items first, even when sortGroups is set.
For example, this spec displays services grouped by Kubernetes namespace, with items ordered by health:
{
"show": "service.name",
"groupBy": ["k8s.namespace.name"],
"sortGroups": "name",
"sortItems": "health",
"visual": { "showSummary": true }
}Shared Definitions
filterCriteria
Type: array
An array of attribute filters. See Filtering for how filters narrow the data.
attributeFilter
| Property | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Resource attribute to test. |
operator | string — enum: is, is_not, gt, lt, gte, lte, matches, does_not_match, contains, does_not_contain, starts_with, does_not_start_with, ends_with, does_not_end_with, is_set, is_not_set, is_one_of, is_not_one_of, is_any | Yes | Comparison or existence test to apply to the attribute. |
value | string | No | Operand for a single-value comparison. Existence tests do not need a value. |
values | array of string | No | Operands for multi-value comparisons such as is_one_of and is_not_one_of. |
variableSelections
Type: array
Each selection identifies a dashboard variable by name and type. Supported types are Dash0FilterVariableSelection, TextVariableSelection, and ListVariableSelection. Text and list selections also require attribute_key, the resource attribute to filter. See Add variables for variable configuration.
Last updated: