Giter Site home page Giter Site logo

finboxio / prometheus-rancher-exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from infinityworks/prometheus-rancher-exporter

0.0 3.0 0.0 109 KB

Exposes Rancher metrics to Prometheus

License: MIT License

JavaScript 79.62% Makefile 16.89% Shell 0.29% Dockerfile 3.21%

prometheus-rancher-exporter's Introduction

prometheus-rancher-exporter

Exposes the health of stacks/services and hosts from the Rancher API, to a Prometheus compatible endpoint.

Description

This container makes use of Ranchers ability to assign API access to a container at runtime. This is achieved through labels to create a connection to the API. The application, expects to get the following environment variables from the host, if not using the supplied labelss in rancher-compose then you can update these values yourself, using environment variables.

  • CATTLE_ACCESS_KEY
  • CATTLE_SECRET_KEY
  • CATTLE_CONFIG_URL

Metrics

Metrics will be made available on a random port by default, or you can pass environment variable PORT to override this.

# HELP rancher_environment_health Value of 1 if the environment is healthy
# TYPE rancher_environment_health gauge
rancher_environment_health{environment="test1"} 1
rancher_environment_health{environment="test2"} 0
rancher_environment_health{environment="load_test"} 1
rancher_environment_health{environment="preprod"} 1
# HELP rancher_host_health Value of 1 if the host is active
# TYPE rancher_host_health gauge
rancher_host_health{environment="Default" host="host1"} 1
rancher_host_health{environment="Default" host="host2"} 0
# HELP rancher_stack_health Value of 1 if all containers in a stack are active
# TYPE rancher_stack_health gauge
rancher_stack_health{environment="Default" stack="stack1"} 1
rancher_stack_health{environment="Default" stack="stack2"} 0
# HELP rancher_service_health Value of 1 if all containers in a service are active
# TYPE rancher_service_health gauge
rancher_service_health{environment="Default" stack="stack1" service="service1"} 1
rancher_service_health{environment="Default" stack="stack1" service="service2"} 0

prometheus-rancher-exporter's People

Contributors

jamesbarwell avatar bdentino avatar rucknar avatar jolyonbrown avatar johnrengelman avatar

Watchers

James Cloos avatar  avatar Andy Pai 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.