yandex_monitoring_dashboard (Resource)
Статья создана
Обновлена 9 февраля 2026 г.
Get information about a Yandex Monitoring dashboard.
Example usage
//
// Create a new Monitoring Dashboard.
//
resource "yandex_monitoring_dashboard" "my-dashboard" {
name = "local-id-resource"
description = "Description"
title = "My title"
labels = {
a = "b"
}
parametrization {
selectors = "a=b"
parameters {
description = "param1 description"
title = "title"
hidden = false
id = "param1"
custom {
default_values = ["1", "2"]
values = ["1", "2", "3"]
multiselectable = true
}
}
parameters {
hidden = true
id = "param2"
label_values {
default_values = ["1", "2"]
multiselectable = true
label_key = "key"
selectors = "a=b"
}
}
parameters {
hidden = true
id = "param3"
text {
default_value = "abc"
}
}
}
widgets {
text {
text = "text here"
}
position {
h = 1
w = 1
x = 4
y = 4
}
}
widgets {
chart {
description = "chart description"
title = "title for chart"
chart_id = "chart1id"
display_legend = true
freeze = "FREEZE_DURATION_HOUR"
name_hiding_settings {
names = ["a", "b"]
positive = true
}
queries {
downsampling {
disabled = false
gap_filling = "GAP_FILLING_NULL"
grid_aggregation = "GRID_AGGREGATION_COUNT"
max_points = 100
}
target {
hidden = true
text_mode = true
query = "{service=monitoring}"
}
}
series_overrides {
name = "name"
settings {
color = "colorValue"
grow_down = true
name = "series_overrides name"
type = "SERIES_VISUALIZATION_TYPE_LINE"
yaxis_position = "YAXIS_POSITION_LEFT"
stack_name = "stack name"
}
}
visualization_settings {
aggregation = "SERIES_AGGREGATION_AVG"
interpolate = "INTERPOLATE_LEFT"
type = "VISUALIZATION_TYPE_POINTS"
normalize = true
show_labels = true
title = "visualization_settings title"
color_scheme_settings {
gradient {
green_value = "11"
red_value = "22"
violet_value = "33"
yellow_value = "44"
}
}
heatmap_settings {
green_value = "1"
red_value = "2"
violet_value = "3"
yellow_value = "4"
}
yaxis_settings {
left {
max = "111"
min = "11"
title = "yaxis_settings left title"
precision = 3
type = "YAXIS_TYPE_LOGARITHMIC"
unit_format = "UNIT_CELSIUS"
}
right {
max = "22"
min = "2"
title = "yaxis_settings right title"
precision = 2
type = "YAXIS_TYPE_LOGARITHMIC"
unit_format = "UNIT_NONE"
}
}
}
}
position {
h = 100
w = 100
x = 6
y = 6
}
}
widgets {
title {
text = "title here"
size = "TITLE_SIZE_XS"
}
position {
h = 1
w = 1
x = 1
y = 1
}
}
}
Arguments & Attributes Reference
dashboard_id(Read-Only) (String). Dashboard ID.description(String). The resource description.folder_id(String). The folder identifier that resource belongs to. If it is not provided, the default providerfolder-idis used.id(String).labels(Map Of String). A set of key/value label pairs which assigned to resource.name(Required)(String). The resource name.title(String). Dashboard title.parametrization[Block]. Dashboard parametrization.selectors(String). Dashboard predefined parameters selector.parameters[Block]. Dashboard parameters.description(String). Parameter description.hidden(Bool). UI-visibilityid(Required)(String). Parameter identifier.title(String). UI-visible title of the parameter.custom[Block]. Custom values parameter. Oneof: label_values, custom, text.default_values(List Of String). Default value.multiselectable(Bool). Specifies the multiselectable values of parameter.values(List Of String). Parameter values.
label_values[Block]. Label values parameter. Oneof: label_values, custom, text.default_values(List Of String). Default value.folder_id(String). Folder ID.label_key(Required)(String). Label key to list label values.multiselectable(Bool). Specifies the multiselectable values of parameter.selectors(String). Selectors to select metric label values.
text[Block]. Text parameter. Oneof: label_values, custom, text.default_value(String). Default value.
widgets[Block]. Widgets.chart[Block]. Chart widget settings.chart_id(String). Chart ID.description(String). Chart description in dashboard (not enabled in UI).display_legend(Bool). Enable legend under chart.freeze(String). Fixed time interval for chart. Values:- FREEZE_DURATION_HOUR: Last hour.- FREEZE_DURATION_DAY: Last day = last 24 hours.- FREEZE_DURATION_WEEK: Last 7 days.- FREEZE_DURATION_MONTH: Last 31 days.title(String). Chart widget title.name_hiding_settings[Block]. Name hiding settingsnames(List Of String).positive(Bool). True if we want to show concrete series names only, false if we want to hide concrete series names
queries[Block]. Queries settings.downsampling[Block]. Downsampling settingsdisabled(Bool). Disable downsamplinggap_filling(String). Parameters for filling gaps in datagrid_aggregation(String). Function that is used for downsamplinggrid_interval(Number). Time interval (grid) for downsampling in milliseconds. Points in the specified range are aggregated into one time pointmax_points(Number). Maximum number of points to be returned
target[Block]. Downsampling settingshidden(Bool). Checks that target is visible or invisiblequery(String). Required. Querytext_mode(Bool). Text mode
series_overrides[Block]. Time series settings.name(String). Series nametarget_index(String). Target indexsettings[Block]. Override settingscolor(String). Series color or emptygrow_down(Bool). Stack grow downname(String). Series name or emptystack_name(String). Stack name or emptytype(String). Typeyaxis_position(String). Yaxis position
visualization_settings[Block]. Visualization settings.aggregation(String). Aggregationinterpolate(String). Interpolatenormalize(Bool). Normalizeshow_labels(Bool). Show chart labelstitle(String). Inside chart titletype(String). Visualization typecolor_scheme_settings[Block]. Color scheme settingsautomatic[Block]. Automatic color schemegradient[Block]. Gradient color schemegreen_value(String). Gradient green valuered_value(String). Gradient red valueviolet_value(String). Gradient violet_valueyellow_value(String). Gradient yellow value
standard[Block]. Standard color scheme
heatmap_settings[Block]. Heatmap settingsgreen_value(String). Heatmap green valuered_value(String). Heatmap red valueviolet_value(String). Heatmap violet_valueyellow_value(String). Heatmap yellow value
yaxis_settings[Block]. Y axis settingsleft[Block]. Left Y axis settingsmax(String). Max value in extended number format or emptymin(String). Min value in extended number format or emptyprecision(Number). Tick value precision (null as default, 0-7 in other cases)title(String). Title or emptytype(String). Typeunit_format(String). Unit format
right[Block]. Right Y axis settingsmax(String). Max value in extended number format or emptymin(String). Min value in extended number format or emptyprecision(Number). Tick value precision (null as default, 0-7 in other cases)title(String). Title or emptytype(String). Typeunit_format(String). Unit format
position[Block]. Widget layout position.h(Number). Height.w(Number). Weight.x(Number). X-axis top-left corner coordinate.y(Number). Y-axis top-left corner coordinate.
text[Block]. Text widget settings.text(String). Widget text.
title[Block]. Title widget settings.size(String). Title size.Title size. Values:- TITLE_SIZE_XS: Extra small size.- TITLE_SIZE_S: Small size.- TITLE_SIZE_M: Middle size.- TITLE_SIZE_L: Large size.text(Required)(String). Title text.
Import
The resource can be imported by using their resource ID. For getting it you can use Yandex Cloud Web Console
# terraform import yandex_monitoring.<resource Name> <resource Id>
terraform import yandex_monitoring_dashboard.my-dashboard ...