View Source

WAS THIS PAGE HELPFUL? {html}<a href="mailto:training@gwos.com?subject=How to display a subset of service metrics">Leave Feedback</a>{html}\\
\\

h5. Overview

This page reviews how to display a subset of service metrics on a graph. A GroundWork service may have more than one metric in its performance data.

By default, all service metrics are displayed in a Grafana graph that is built using the GroundWork data source. There are a number of ways to selectively hide a subset of the metrics in a Grafana dashboard.
{note}This does not apply to embedded Grafana graphs in Status, which always shows all metrics.{note}

h5. Steps


h6. Using display overrides

Display overrides can be used to selectively control which metrics are visible on a graph. To configure display overrides follow the steps below.
# Edit the graph.
# Select the *Display* tab.
# Select the *Series overrides* section.
\\
\\
Figure: {{local_load service}} has two overrides added to show 15 minute load average metric
!How to display a subset of service metrics_01.jpg!

h6. Using legend control

# Edit the graph.
# Left click on the metric in the legend to select the metric.
# All metrics will be shown when the dashboard is reloaded.

h6. Using the InfluxDB data source

GroundWork performance data that is stored in InfluxDB can be accessed in Grafana using the InfluxDB data source rather than the GroundWork data source. The steps below outline how to to add a an InfluxDB data source.

# Log into GroundWork Monitor as an Administrator (e.g., {{admin}}/{{admin}}).
# Go to *Dashboards* > *Grafana*.
# To log in as the Grafana Administrator, click !grafana_icon.png!, click *Sign In*. The default credentials are {{admin}}/{{admin}}.
# Click !grafana_icon.png!, and select *Data Sources*.
# Click the *Add data source* button.
# Create a new InfluxDB data source with the following parameters:
*Name*: (e.g., influx data source)
*Type*: InfluxDB
*URL*: [http://localhost:8086]
*Access*: proxy
*Database*: groundwork
\\
# Create a dashboard with the _Panel Data Source_ set to the name of the InfluxDB data source created in the previous step (e.g., influx data source).
\\
\\
Figure: 15 minute load average
\\ !How to display a subset of service metrics_02.jpg!