Giter Club home page Giter Club logo

synse-prometheus's Introduction

!! DEPRECATED !!

FOSSA Status

This repository is deprecated. Official support for the Prometheus exporter for Synse Server now lives in the Synse GraphQL repository.


synse-prometheus provides a Prometheus exporter for the metrics being provided by your data center and IT equipment. You can use this, in conjunction with Prometheus to monitor these metrics and alert on them.

Kick the tires

make run

To keep everything tied together, this starts a prometheus server up for you. Send your browser to http://localhost:9090 and play around.

To stop it, you can run:

make down

Note: the default configuration uses the embedded synse-server and ipmi emulator. If you'd like to use a different backend, check out --help.

Usage

docker run -it --rm vaporio/synse-prometheus python runserver.py --help
  • To specify which synse-graphql instance to collect data from, set the SYNSE_GRAPHQL environment variable to the url of the graphql server.
  • Configure your prometheus server. For more detailed documentation, see the [prometheus docs]. An example config:
global:
  scrape_interval:     15s

scrape_configs:
  - job_name: 'synse'

    # Override the global default
    scrape_interval: 300s

    static_configs:
      - targets: ['synse-prometheus:9243']

Development

Run the server

make build dev
python runserver.py
  • From outside the container (or inside it), you can run curl localhost:9243

Run the tests (as part of development)

make build dev
tox

See nosetests for some more examples. Adding @attr('now') to the top of a function is a really convenient way to just run a single test.

License

FOSSA Status

synse-prometheus's People

Contributors

berrescuda avatar edaniszewski avatar fossabot avatar grampelberg avatar kylerburke avatar

Watchers

 avatar

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.