4.01L Create Time Series Panel - MartinWong06/grafana GitHub Wiki

Create Time Series Panel

  1. Open Grafana and click on "New Dashboard" to create a new dashboard.

  2. Click on "Add visualization" to add a new visualization panel to the dashboard.

  3. Under "Select Data Source" window, select the Prometheus data source.

  4. In the "Query" tab section, enter the PromQL query to retrieve the desired data. For example, you can use the query rate(prometheus_http_requests_total[5m]), retrieve the rate of HTTP requests over the last 5 minutes.

  5. In the "Options" section, select "Time Series" as the visualization type.

  6. Under "Legend", select "Verbose" to display a legend for the chart.

  7. Under "Panel Options" side bar, you can customize the appearance of the chart, including its title and colors.

  8. Click "Apply" to create the chart.

Create Time Series Panel base on your query

  1. First, create a new dashboard in Grafana by clicking on the "New Dashboard" button on the home screen.

  2. Click on "Add visualization" to add a new visualization panel to the dashboard.

  3. Choose "Time Series" as the panel type.

  4. In the panel editor, click on the "Query" tab.

  5. Select the Prometheus or Graphite data source that you want to use for your time series chart.

  6. Choose a metric that you want to visualize by typing its name in the "Query" field. For example, you can type "up" to show the status of all targets being monitored by Prometheus.

  7. Customize the time range for your chart by selecting a preset range or specifying a custom range using the time picker.

  8. Configure the display options for your chart, such as the title, legend, axes, and colors.

  9. Save your panel by clicking on the "Save" button.

  10. View your time series chart on your dashboard.