Giter VIP home page Giter VIP logo

svtexporter's Introduction

SVTExporter

SVTExporter talks to the API of a SimpliVity OVC to pull information about used capacity on one or more nodes. It does not maintain any state - it expects to be scraped periodically through Prometheus.

Note: Depending on how long each scrape operation takes, you may not get data back. Please review the notes below about scrape_interval and scrape_timeout carefully.

Running

Launch with python3 svtexporter.py and make sure you have config.ini in the same directory.

Configuration

Expects a file called config.ini in the same directory as the exporter with the following info:

HOST=ovc1 # SimpliVity IP that has the OVC API available
USERNAME=
PASSWORD=
PORT=9388 # port to bind to

Prometheus

Example of how the exporter can be configured in Prometheus:

- job_name: svtexporter
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 20s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - host:9388

You will need to tune scrape_interval and scrape_timeout based on how long it takes the SVTExporter to collect metrics. You can request /metrics manually to see this or put in some reasonable defaults and monitor Prometheus' Targets status page to see if it completes successfully.

svtexporter's People

Contributors

arionl avatar

Watchers

 avatar

svtexporter's Issues

Use environmental variables vs. config file

Since the config file entries contain sensitive data (username, password) this should really come from environmental variables instead. That way they could be ephemeral and come from a credential vault, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.