Viewing metrics in Monium Metrics
In Metrics, you can customize metric visualization and analyze the metrics of your infrastructure and applications in real time.
The charts you create in this section are not saved and lend themselves well for real-time monitoring. If you need repeated access to a specific chart, save it to your dashboard.
Building charts based on metrics
For charts based on Prometheus metrics, see Reading and visualizing metrics in Monium Metrics.
-
On the Monium
home page, select Explore → Metrics on the left. -
At the top, set the data search period on the timeline.
-
To search for application metrics, enter the following in the query string:
-
project = <project_ID>: Select the project specified inx-monium-projectof the application's telemetry transmission configuration.This may be a cloud (
cloud__<cloud_ID>) or folder (folder__<folder_ID>) project, or another project. -
cluster = <cluster_name>: Select the name of the installation that runs your application. If no cluster is specified,cluster = defaultis used. -
service = <service_name>: Name of your application or service. You can use theOTEL_SERVICE_NAMEenvironment variable to provide it.If you do not see the required labels in the suggestions, you can enter them manually. However, the system most likely has not received data with these labels. For more on troubleshooting possible issues, see Data delivery troubleshooting.
-
-
To search for Yandex Cloud resource metrics, enter the following in the query string:
project = folder__<folder_ID>: ID of the folder the Yandex Cloud resource resides in.cluster = default.service = <__service_name__>, e.g.,__application-load-balancer__,__cdn__, or__iam__.- Labels of the resource. For example, for Identity and Access Management, you can specify a service account:
service_account = <service_account_name>.
Note
If you delete a Yandex Cloud resource (e.g., a VM instance) and create a new one with the same name, searching by name will only show metrics for the new resource. Metrics for the earlier resource remain available until the TTL expires, but only when searching by its
resource_id. -
To view available labels for the entered query, click
in the query line on the right.If the required label is not found, check the search time interval. Data with this label might not have been received, or it may have been deleted due to TTL. You can enter a label manually, but the chart will only appear if there is data for the selected interval.
Select metrics and labels from the drop-down lists in the query bar, or type the first few letters of the label's name.
To view query string hotkey tooltips, click
Cmd/Ctrl + Enter. -
Click Execute.
-
To visualize a modified metric on the chart, select functions in .
-
To display another metric on the chart, click Add query and enter the metric and label values.
Hide any intermediate queries used for calculating another query on the chart. To do this, click next to the query.
If you want to render a dedicated chart for each query, enable the One graph per query setting and select the number of charts per row.
-
To temporarily hide charts for specific labels, select Pivot table at the bottom and disable the charts you do not need.
-
To view metric values in a table, select Raw data at the bottom.
Selecting a time interval
The selected interval affects the search for metrics and the suggestions in the query bar. To find a metric that has stopped recording data, select a time period that includes its data. When loading historical data, follow the correct order for recording the data points.
You can set the time interval for displaying metrics in one of the following ways:
- At the top of the Metrics section, click:
- Last hour: To set the date and time in the drop-down list.
- < or > to move one hour forward or backward on the timescale.
- 1h, 1d, 1w, or 1M to show metrics for the last hour, day, week, or month, respectively, on the chart. In the field next to it, you can specify your own time interval, e.g.,
15m.
- At the top right of the chart panel, click + or –.
- Select an area on the chart and click Go to selected window.
Customizing chart visualization
Select the chart type and set its parameters. Available settings depend on the chart type.
-
Above the chart on the right, click Chart type and select a chart from one of the groups:
- Timeseries: Line, Area, Column, Points.
- Aggregations: Pie, Tiles, Bars.
-
To open the chart settings, click
. -
Under General, set the chart title and description.
-
Under Visualization, configure the following:
-
Color scheme: Chart line colors.
To maintain consistent colors for lines with the same names across various charts, select Line name.
To highlight lines exceeding a threshold value with that threshold's color, select By threshold and configure thresholds.
-
Normalize: To normalize all data to a range from
0%to100%. -
Interpolation: To set a method of filling the data gap between two points, such as linear interpolation, forward fill, or backward fill.
-
-
Under Left Y axis and Right Y axis, set the title, scale, minimum and maximum values, units, and the number of decimal places.
-
Under Downsampling, configure the read data aggregation option.
-
Under Thresholds, specify one or more values. Based on these, straight lines will be drawn on your chart to help you easily detect any metrics with values above or below thresholds. You can customize the color for each line or leave the defaults.
-
When you are done configuring the chart, close the settings panel. The chart displays all changes as soon as you make them.
Setting up the Barschart
The Bars type allows you to compare aggregated metric values by category. You can group errors by response code, then split each group by host.
-
Select the metrics and build a chart.
-
Above the chart on the right, click Chart type and, in the Aggregations group, select
Bars. -
Click
and open the Visualization section. -
In the Group by field, select a label for the categories. For example,
codewill create categories for response codes such as500,503, and504. -
In the Split group by field, select a label for the subgroups. For example,
hostwill divide each category into columns forhost-1,host-2.In both fields, you can leave the automatic selection of labels based on the data.
-
In the Aggregation field, select the average, minimum, maximum, last value, sum, or number of points.
For each column, the metric values at each time point are first summed. Then, the chosen aggregation is applied to the resulting time series over the entire period.
-
In the Sort field, choose to sort by column values or categories, in either ascending or descending order. By default, categories are sorted in ascending order: numerical categories are sorted as numbers, while others are sorted lexicographically.
-
In the Orientation field, select a vertical or horizontal layout for the columns.
-
In the Stacking field, select the layout within the category: side-by-side or stacked.
-
Close the settings panel. All changes take effect immediately.
The legend displays groups of columns, while modifications are applied to individual columns. To view a column’s statistics and labels, or to change its visibility or color, open Pivot table.
To color columns based on aggregated values, select the By threshold color scheme and set thresholds.
When breaking down a chart by labels, the selected aggregation is also used to filter for the largest or smallest values.
Reviewing the chart data
To view the chart legend:
- At the top right of the chart panel, click
. - Select Show legend.
- To highlight a specific chart, hover your cursor over its title in the legend.
To view the legend and statistics for a particular time point:
-
Hover the cursor over, or click, the point of interest on the chart.
-
In the information window, check values for different labels at that time point.
-
To sort values based on a specific column, click the column header.
-
Click
and select Go to line to open a separate chart for a specific value. -
To keep the information window open when you select another point, press Cmd + Click or Ctrl + Click.
This way, you can open multiple windows for a single chart, comparing metric values at different points in time. To arrange windows in the desired order, hover over
and drag the window.
To view the legend and statistics for a time interval:
- Select an area on the chart.
- In the information window, view the statistics for the metrics within the selected interval.
- If needed, sort by minimum value, maximum value, average value, or other parameters.
- Click
and select Go to line to open a separate chart for a specific value.
Viewing metrics in numeric format
-
To view the numeric values of the metrics, click Raw data under the chart.
It will give you a list of data for all the time points with collected metrics. To change the period, select the time interval you need at the top.
-
To view statistics for the metrics (minimum and maximum values, sum, etc.), click Pivot table.
-
To save the pivot table data, click Copy as CSV on the right.
Splitting a chart by a parameter
- Select the metrics and build a chart.
- Under the chart, click Chart split.
- Select the parameters you want plotted:
- Split by label: Parameter for additional charts. These can be charts for different services, hosts, or processors, i.e., tokens selected in the query.
- Display: Number of maximum or minimum values on a chart.
- Sort by: Sorting by minimum, maximum, or average value of the selected parameter.
- Graphs in row: Number of charts per row.
- Click Execute.
Select different parameter values and you will see the charts updated to reflect your selection.
Adding a chart to a dashboard and sharing a chart
To add a chart to a dashboard:
- Select the metrics and build a chart.
- At the top right, click
and select Add to dashboard. - Select the project where the dashboard is located or will be created.
- Select an existing dashboard or click New dashboard.
- Enter a name for the chart-based widget.
- Select a chart adding option:
- Add: Stay in Metrics.
- Add and edit: Go to Dashboards. The chart will not be saved in Metrics.
The widget on the dashboard will not be linked to the original chart. The changes you make to any of them will not affect the other.
To share a chart:
- Select the metrics and build a chart.
- At the top right, click
. - Specify a time interval for your chart.
- Click Copy to copy the chart link to the clipboard.
Creating an alert from a query
- Select the metrics and build a chart.
- In the query panel at the top right, click
and select Create alert from query or Create alert from all queries. - Specify the alert parameters.
- Click Create.