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 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>) project, 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. See Data delivery troubleshooting for possible solutions.
-
-
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>.
-
To view all available labels for a query you have already entered, click
in the query bar controls on the right. If you do not see the label in the list, it means that its values were not transferred to the system or have already been deleted due to TTL expiration. You can enter a label manually, but the chart will not be displayed.You can select metrics and labels with your cursor from the drop-down lists in the query string or by typing the first letters of the label 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
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
- At the top right of the chart panel, click
. - Under General, set the chart title and description.
- Under Visualization, configure the following:
-
Chart type: Select one of the metric display options: line chart, shaded areas, bar chart, scatter chart, pie chart, or tile chart.
-
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.
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 highest and lowest values on the chart.
- Sort by: Sorting by minimum, maximum, or average value of the selected parameter.
- Graphs in row: Number of charts per row.
- Click Execute.
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.