freshtracks

Add FreshTracks Thresholds to Grafana Graphs

Incorporate machine learning into the default Grafana Graphs.

The Grafana software hosted by FreshTracks provides all the usual default graphs. You can use these graphs as is, but you can also add dynamic thresholds to take advantage of the machine learning provided by FreshTracks.

Follow the Grafana process to edit your graphs. For detailed instructions, see the Grafana graph documentation. The Grafana metrics tab defines the data and sources to render. You must define two additional data sources for a graph to view threshold data.

The following figure shows a node memory utilization graph in edit mode. The metrics tab shows three data sources. The two additional data sources are circled. These are the ft_high and ft_low dynamic threshold series.

Figure: Example Graph in Edit Mode

Figure: Example Graph in Edit Mode

Each graph can use queries that contain different metrics depending on the data source. The queries in the previous figure are described below:

  • The first data source query generates the line showing the current metric values for node memory utilization. The query in the example is ft_aggregation:ft_cluster:node_memory_utilization_bytes{ft_cluster="$cluster"}.
  • The second data source query generates the upper threshold boundary. The query in the example is ft_high:ft_aggregation:ft_cluster:node_memory_utilization_bytes{ft_cluster="$cluster"}. The name for all upper threshold data source queries start with ft_high. The rest of the query matches the corresponding query they work with.
  • The third data source query generates the lower threshold boundary. The query in the example is ft_low:ft_aggregation:ft_cluster:node_memory_utilization_bytes{ft_cluster="$cluster"}. The name for all lower threshold data source queries start with ft_low. The rest of the query matches the corresponding query they work with.

After you add your queries, you must add additional display overrides. The following figure shows the three overrides on the display tab.

Figure: Example Display Settings

Figure: Example Display Settings