Skip to content

loitho/Aspera-Console-Monitoring

Repository files navigation

Aspera Console Monitoring

What is this for ?

You might be running an Aspera Console System that lets you see the current transfers, the bandwidth used etc ... This would make you able to send the Aspera Console Data to InfluxDB in that case.

Requirements

  • Aspera console, tested on v3.4.2, but should work on newer versions
    • A readonly user on the aspera console
  • Telegraf (to run the 2 scripts)
  • Python 2.7
  • InfluxDB to store the results. (You might be able to reformat the output to whatever TSDB you desire, check the code)
  • Grafana to display the results (Or use any concurrent, doesn't matter)

How it works

There are 2 Python (2.7, sorry, that was written a long time ago) scripts :

  • aspera-transfer-bandwidth.py
  • get-aspera-transfer-stats.py

Those 2 Python Scripts should be run by Telegraf regularly, using the telegraf config exec_script_aspera.conf file This will send data to the output you've chosen in Telegraf, for us it was Influx.

Config

  • Edit the variables at the top of the 2 python scripts, to provide : A user, A password, The console URL, and the console shortname
  • Provide telegraf with the exec_script_aspera.conf file and restart the telegraf process
  • Configure Telegraf to output to influxDB
  • Configure the Grafana Dashboard with the instructions in the Grafana section below

aspera-transfer-bandwidth.py

Simply get the bandwidth of each individual transfers every 10 seconds

get-aspera-transfer-stats.py

Get a global status of all transfers to the console every 10 minutes

Grafana

View

This is what it looks like in Grafana when properly Setup: image

image

Configuration

  • You can import into Grafana the Dashboard called Aspera Console.json provided by this repository
  • You'll then need to update the Grafana Dashboard Variable called connect_server, it must be your HighSpeed Transfer Server IP Addresses
    • In this configuration, it's currently setup to 10.42.42.4[1-2]|10.43.43.4[3-4], meaning it matches
      • 10.42.42.41
      • 10.42.42.42
      • 10.43.43.43
      • 10.43.43.44
    • Once Changed, update your dashboard and it should work nicely.

About

Export Aspera console values to graph them in InfluxDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages