VSA Metrics Monitoring: Node Exporter & Grafana

Keeping an eye on system resources helps ensure your backups continue to run smoothly and reliably. For years, running VBR on Windows has given us the freedom to connect to external monitoring tools through SNMP, third party software, or whatever approach best fits our needs.

Bring the Veeam Software Appliance (VSA) into the picture though, and it’s a different story. Since the VSA runs as a security first, hardened Linux appliance, some of the monitoring approaches we’re used to relying are no longer available.

So how do you actually keep tabs on how your VSA is performing?

Veeam recently addressed this issue by making metrics available via a Node Exporter in version 13.1. While this single method approach doesn’t provide the flexibility we’re used to, it at least offers a supported way to access performance metrics without modifying the appliance OS.

Curious to see how this works in practice, I decided to spin it up in my home lab and see what kind of visibility and detail it actually provides.

Enabling Performing Metrics Sharing

Turning on performance metrics sharing is a straightforward task and only takes a few clicks:

Log into the VBR Web UI and head over to Configuration.

Next click Observability from the menu on the left to bring up the Node Exporter section.

Toggling on the Enable metrics sharing slider and clicking Save will start exposing performance metrics over HTTP for your VSA as well as any other Veeam Infrastructure Appliances (VIA) you have added to your backup infrastructure. Once enabled, you can expect to see metrics for CPU, RAM, disk and network.

Let’s have a closer look at what these metrics look like. In a browser window, navigating to http://%YourApplianceIP%/metrics should display a page of text similar to the screenshot below.

What you’re seeing here is Prometheus format which is a plain text, line based format commonly used for time series metrics. It’s definitely not easy on the eye but fortunately it isn’t designed for human’s to look at! Most modern monitoring stacks are built to parse text in this format effortlessly.

Securing your Endpoints

With the current settings in place, all metric data is being exposed as plain text over HTTP. Although this guide is based on a lab environment, it’s worth considering securing your endpoints over HTTPS at a minimum. You also have the ability to lock things down further if needed by enabling authorisation.

To enable these additional security options, toggle the individual sliders for Enable secure connection and Enable password authorization. Enabling the latter will require a username and password to be entered which will apply to all appliances added to the backup infrastructure.

Each endpoint will now be available at https://%YourApplianceIP%/metrics instead. If you also enabled Enable password authorization you’ll be prompted to input credentials when trying to access the endpoint.

Deploying a Monitoring Platform

Now that we have metrics to work with, we need a monitoring platform to ingest the data and visualize it. Since I’m using my home lab as the test environment, I’ll use my self-hosted containerised TIG stack for this demo. For anyone unfamiliar, TIG is a free, open-source monitoring platform made up of Telegraf, InfluxDB, and Grafana.

If you want to test this out for yourself, keep in mind that you will need to have Docker installed and running on a Linux host before you start.

In addition to the below guide, you can find all the configuration files required to build the TIG stack in my GitHub repository:
https://github.com/bharmers/veeam-scripts/tree/main/vsa-node-exporter

Spinning up containers

The monitoring stack relies on three containers to get everything up and running:

  • Telegraf – A lightweight tool that will collect performance metrics from the Veeam endpoints and forward them on to InfluxDB.
  • InfluxDB – A time-series database, ideal for storing and querying timestamped metrics data.
  • Grafana – A visualization platform that transforms metrics and logs into interactive dashboards

Let’s start by setting up the Docker Compose file.

services:
influxdb2:
image: influxdb:2
container_name: influxdb2
restart: unless-stopped
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME_FILE: /run/secrets/influxdb2_username
DOCKER_INFLUXDB_INIT_PASSWORD_FILE: /run/secrets/influxdb2_password
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE: /run/secrets/influxdb2_token
DOCKER_INFLUXDB_INIT_ORG: myorg
DOCKER_INFLUXDB_INIT_BUCKET: telegraf
volumes:
- influxdb2-data:/var/lib/influxdb2
- influxdb2-config:/etc/influxdb2
ports:
- "8086:8086"
secrets:
- influxdb2_username
- influxdb2_password
- influxdb2_token
telegraf:
image: telegraf:1.40
container_name: telegraf
restart: unless-stopped
depends_on:
- influxdb2
environment:
INFLUX_ORG: myorg
INFLUX_BUCKET: telegraf
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
secrets:
- influxdb2_token
#- node_exporter_username #uncomment if using password authorization
#- node_exporter_password #uncomment if using password authorization
grafana:
image: grafana/grafana:13.3.1
container_name: grafana
restart: unless-stopped
depends_on:
- influxdb2
volumes:
- grafana-storage:/var/lib/grafana
ports:
- "3000:3000"
volumes:
influxdb2-data:
name: influxdb2-data
influxdb2-config:
name: influxdb2-config
grafana-storage:
name: grafana-storage
secrets:
influxdb2_username:
file: ./.env.influxdb2_username
influxdb2_password:
file: ./.env.influxdb2_password
influxdb2_token:
file: ./.env.influxdb2_token
#node_exporter_username: #uncomment if using password authorization
#file: ./.env.node_exporter_username #uncomment if using password authorization
#node_exporter_password: #uncomment if using password authorization
#file: ./.env.node_exporter_password #uncomment if using password authorization

Rather than storing sensitive data directly in the Compose file, secrets are configured to pass values such as passwords and tokens in securely.

For each secret listed in the secrets: section of the Compose file, create a corresponding file on the Linux host and populate it with the associated value.
https://docs.docker.com/compose/how-tos/use-secrets

When creating the secret file for the influxdb2_token, you can use any string value you like. To generate a complex random string, you can use the command openssl rand -hex 32.

Telegraf Configuration File

Telegraf uses a configuration file which will need editing so that it knows where to collect the metrics data from and where to send it to. Create a new file named telegraf.conf and populate it as follows:

[[secretstores.docker]]
id = "docker"
[[inputs.prometheus]]
urls = ["https://veeamsa/metrics"] #change to your veeam endpoint url
metric_version = 2
name_override = "veeam_exporter"
insecure_skip_verify = true #uncomment for labs using self-signed certificates
#username = "@{docker:node_exporter_username}" #uncomment if using password authorization
#password = "@{docker:node_exporter_password}" #uncomment if using password authorization
[inputs.prometheus.tags]
host = "veeamsa" #change to your vsa hostname
role = "vbr" #change based on the appliance role - e.g. vbr, repo, proxy etc
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"] #change to your influxdb url
token = "@{docker:influxdb2_token}"
organization = "${INFLUX_ORG}"
bucket = "${INFLUX_BUCKET}"

Make any changes as necessary to suit your environment and save the file.

If you have other Veeam endpoints that you want to collect metrics for such as a VIA, add these here too. To do this, copy the [[inputs.prometheus]] code block and paste it underneath the first one, amending it to reflect the VIA configuration.

Grafana Dashboard

Once the containers are up and running we can jump into Grafana and start setting up the dashboard.

Log into the Grafana web interface, making sure to specify port 3000 in the URL.

Connecting InfluxDB

Before we can add a dashboard we need to setup the InfluxDB bucket as a data source.

From the left menu, under Connections select Data sources. Next click the Add data source button and choose InfluxDB from the list.

Change the Query language dropdown to Flux then under the HTTP section enter the URL of your InfluxDB instance. Under the Auth section make sure you turn off Basic auth.

Now configure the InfluxDB Details section at the bottom of the page, using the values below:

Organization: myorg
Token: Enter the same token generated earlier
Default Bucket: telegraf

Click Save & test and ensure the connection is successful:

Importing the Dashboard

We’re finally onto the home stretch.

Select Dashboards from the left menu then on the far right, click New and choose Import dashboard.

Rather than create a dashboard from scratch, let’s use a prebuilt one specifically created to display Veeam Node Exporter metrics: https://grafana.com/grafana/dashboards/25664-grafana-dashboard-for-veeam-node-exporter

This dashboard comes from Jorge de la Cruz, who is well known in the Veeam community for his dashboard creations. He’s put together a huge range of them over the years and they feature regularly on his blog – well worth a look if you want to see more ways to monitor your Veeam setup.

Provided your docker instance has internet access, we can import the dashboard by its ID. This can easily be located from the Grafana dashboard page linked above.

Type the ID 25664 into the text field and click the Load button to the right.

The page will update, displaying details about the dashboard. For the final step, click the dropdown box at the bottom of the page and select the InfluxDB data source, and hit Import.

After a few moments, you will be redirected to the dashboard page where the various graphs should begin to populate. Once enough metrics have been collected, we can see how the VSA has performed over the past 24 hours.

24 hours is the dashboard’s default time range, but it can be extended as needed using the drop down in the top right of the screen.

On the other hand, we can also narrow the time range down from days to minutes, allowing for more detailed troubleshooting and performance analysis.

In addition to displaying performance metrics, we can also scroll down to the bottom of the page to see the current health and build numbers of the various Veeam services.

So far, we’ve focused on a single VSA, however the dashboard can also cater to more complex environments where backup components have been split out across different appliances.

Provided additional appliances have been added into the Telegraf configuration file, you can switch between them using the Backup Server dropdown list in the top left corner, then select the appliance you want to view.

Final Thoughts

In its current form, the VSA provides a solid foundation for monitoring, with Node Exporter exposing more than enough metrics to provide meaningful visibility into the health and performance of your Veeam appliances. While there may be a learning curve for those unfamiliar with the Node Exporter ecosystem, support across most major monitoring platforms makes integration relatively straightforward.

Avoiding options like third party monitoring agents makes perfect sense for a hardened security appliance, however I think support for agentless protocols such as SNMP would be a welcome addition, especially for those looking to continue using the monitoring tools and processes they are familiar with.

However you look at it, proactive monitoring provides valuable insight into your backup infrastructure, helping you troubleshoot backup failures, pinpoint performance bottlenecks, and proactively plan for future growth.

Leave a Reply

Create a website or blog at WordPress.com

Up ↑