Time series charts are designed for Metricstores. A time series chart displays the results of one or more queries on data that is collected from Prometheus and stored to a Metricstore. This topic describes how to configure a time series chart.

Procedure

  1. Log on to the Log Service console.
  2. In the Projects section, click the project that you want to view.
  3. Choose Time Series Storage > Metricstore. On the Metricstore tab, click the Metricstore that you want to view.
  4. Click the Properties tab and configure the attributes of the time series chart.
    Parameter Description
    Fill Missing Data If you turn on Fill Missing Data, Log Service automatically generates substitutes for missing samples in a time series.
    Y-axis Minimum Value The minimum value allowed for the y-axis.
    Y-axis Maximum Value The maximum value allowed for the y-axis.
    Format Left Y-axis The format of the left y-axis.
    X-axis Scale Density The scale density of the x-axis. Valid values: 3 to 30.
    Line Type The type of the lines in the time series chart. Valid values: Straight Line and Curve.
    Show Points If you turn on Show Points, sample values are displayed in the time series chart.
    Margin The distance between an axis and a border of the time series chart.
  5. Click the Query Statements tab and execute query statements.

    You can click Preview Raw Data in the upper-right corner of the page to view the metric data that is collected. Example: __labels__:hostname#$#hostname1|ip#$#192.0.2.0 __time_nano__:1644309671000000000 __value__:52.71 __name__:cpu_util . Log Service generates a time series chart based on the collected metric data and the metrics that you select. For example, if you want to query the CPU utilization of different hosts, you can select the cpu_util metric. Then, Log Service displays a time series chart for the CPU utilization of different hosts.

    Metricstore