Skip to content

tintri-stats connects to a specified Tintri VMstore, gathers metrics, and sends them to a specified Graphite server. It also includes a sample Grafana dashboard.

License

Notifications You must be signed in to change notification settings

genebean/tintri-stats

Repository files navigation

Tintri Stats

This is a simple app that runs either in a Docker container or in OpenShift using the Python 2.7 template. The docker container is published as genebean/tintri-stats It connects to a specified Tintri VMstore, gathers metrics, and sends them to a specified Graphite server. Optionally, you could also point this at a Tintri Global Center instance. To collect metrics from multiple VMstores you will need to run multiple instances of this app.

screenshot of the provided dashboard

Usage

There are five parameters used by the tintri_graphite.py application:

  • vmstore_fqdn = the fqdn of your Tintri's admin interface
  • vmstore_username = a read-only account on your Tintri
  • vmstore_password = the password for the read-only account
  • graphite_fqdn = the fqdn of your Graphite server
  • graphite_port = 2003 (adjust if needed)

Docker

To run in docker you will need to pass in the parameters listed above like so:

$ read -s vmstore_password
# type / paste your password (it won't be displayed)
$ docker run \
  --name stats-4-tintri-admin-opdx-prod-1 \
  genebean/tintri-stats \
  python tintri_graphite.py tintri-array1.example.com stats_user $vmstore_password graphite.example.com 2003

OpenShift

If running from OpenShift you will need to set the parameters above as environment variables along with a sixth one:

  • APP_FILE = tintri_graphite.py

Interactive / Command Line

If running interactively, you can also pass the last 5 of these as command line arguments like so:

read -s vmstore_password
# type / paste your password (it won't be displayed)
python tintri_graphite.py vmstore_fqdn vmstore_username $vmstore_password graphite_fqdn graphite_port

Prior work

This repo contains a modified version of tintri_graphite.py from github.com/eric-becker/tintri_graphite and tintri_1_1.py from github.com/Tintri/tintri-rest-api.

About

tintri-stats connects to a specified Tintri VMstore, gathers metrics, and sends them to a specified Graphite server. It also includes a sample Grafana dashboard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published