Skip to content

Generate Metrics


Guance supports generating new metric data based on existing data within the current space, making it easier for you to design and implement new technical metrics according to your needs.

Note:

  • Roles with the generating metrics configuration permission can create and edit metric generation.
  • After the metrics are generated, they will be stored according to the current default data storage strategy and charged based on the number of time intervals produced.
  • After the metrics are generated, if there is no data reported during the period, they cannot be queried and analyzed in the workspace, such as in metric Analysis, Charts, and DQL Query Tool.

Setup

Go to RUM > Generate metrics page and click on Create.

Data Source: Filter out all/single application data sources that already exist in the current workspace and generate new data based on this data source.

  • Application: Application data source, which refers to the names of applications with data collection enabled; " * " represents all data sources.

Data Query: Based on the selected data source, you can add filtering and aggregation expressions to the existing data to request new metric results and data sets.

  • Aggregation Method: See the table below:
Methods Description
count Count
avg Average; require selecting the field to aggregate
max Maximum value; require selecting the field to aggregate
min Minimum value; require selecting the field to aggregate
P75 75th percentile value of the specified field; require selecting the field to aggregate
P95 95th percentile value of the specified field; require selecting the field to aggregate
P99 99th percentile value of the specified field; require selecting the field to aggregate
  • Dimension: Aggregate the data based on the selected objects, that is, generate a statistical value for each selected object in the data request.

  • Filter: Support adding one or multiple filter conditions to the existing tag data and adding AND or OR relationship to the same row of filter conditions.

Generate metrics: Set the method and results of generating metrics, including the frequency of generating metrics, the name of the newly generated metric label, and the name of the measurement.

Fields Description
Frequency The execution period of generating metrics, default is 1 minute, which means generating new metric data every 1 minute; the selected frequency is also used as the aggregation time.

For example, if the frequency is set to 1 minute, metrics will be aggregated and generated every 1 minute, and the time range of each aggregation will also be 1 minute.
Measurement Set the name of the measurement where the metrics are stored.
Metrics Set the name of the metric and the name must be unique. Multiple metrics can be added.
Label Automatically generated based on the selected dimensions in the query.
Unit Optional. Set the unit of the metric. After the generated metric has a unit set, it can be applied in chart queries.
Description Optional. Set the description of the metric. After the generated metric has a description set, it can be applied in chart queries.

After completing the filling of the generation rule, click Confirm to complete the generation rule and start data collection.

Options

All added rules will be displayed on the Generate Metrics interface, and users can perform the following options:

Feedback

Is this page helpful? ×