HierarchyMap Definition

Display service or resource hierarchies grouped by attributes with health indicators.

Displays service or resource hierarchies grouped by attributes with health indicators.

Kind: HierarchyMap

For editor instructions, see Configure a Hierarchy Map.

Spec Properties

PropertyTypeRequiredDescription
showstringYesResource attribute whose values define the displayed items. Resources without this attribute are excluded. The editor defaults to service.namespace.
groupByarray of stringYesResource attributes used to group items into a hierarchy. Use [] for no grouping. The editor lets you select one grouping attribute.
filterarrayNoFilter criteria that restrict the resources included in the map. Defaults to no additional filters.
sortGroupsstring — enum: name, healthNoGroup sort preference. name compares labels; health prioritizes groups with more critical and degraded failed checks. Defaults to name.
sortItemsstring — enum: name, healthNoItem 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.
visualobject with keys: showSummaryNoSet showSummary to false to hide health summary counts below the map or its groups. The summary is shown by default.
variablesarrayNoDashboard 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

PropertyTypeRequiredDescription
keystringYesResource attribute to test.
operatorstring — 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_anyYesComparison or existence test to apply to the attribute.
valuestringNoOperand for a single-value comparison. Existence tests do not need a value.
valuesarray of stringNoOperands 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: