Giter VIP home page Giter VIP logo

pacemaker-exporter's Introduction

pacemaker-exporter's People

Contributors

marcan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pacemaker-exporter's Issues

Getting a KeyError

Hello!

I installed the requirements but for me the exporter is not working. I get the following:

Traceback (most recent call last):
File "/usr/bin/prometheus-pacemaker-exporter.py", line 197, in
REGISTRY.register(PacemakerCollector(args))
File "/usr/local/lib/python3.5/dist-packages/prometheus_client/core.py", line 50, in register
names = self._get_names(collector)
File "/usr/local/lib/python3.5/dist-packages/prometheus_client/core.py", line 86, in _get_names
for metric in desc_func():
File "/usr/bin/prometheus-pacemaker-exporter.py", line 94, in collect
float(attrib.attrib['expected']))
KeyError: 'expected'

OS: Debian 9.3
Python: 3.5
prometheus-client: 0.1.1
Pacemaker: 1.1.16

As I do not know python I wanted to ask if you have an idea how to fix this.

Thanks!

Port to Golang

Hi @marcan,

I wanted to ask you, if you are interested in porting this exporter to Golang.
Why? I have some appliances(I can not install extra system's software there), that runs on old OSs, and does not provide python3.
As Golang give you one static binary, I could use this exporter there. There is many more advantages too, like the tooling, library upgrades, testing, etc.
If you agree, I would like to contribute too!

Thanks!

Error 500

Hi, thanks for this exporter.

Error code: 500

Message: 'module' object has no attribute 'run'.

Error code explanation: 500 - Server got itself in trouble.

on exporter page

I habe python3, prometheus python client and crm_mon

#dpkg -l |grep pacemaker
ii crmsh 2.2.0-1bpo8+1 amd64 CRM shell for the pacemaker cluster manager
ii pacemaker 1.1.15-3
bpo8+1 amd64 cluster resource manager
ii pacemaker-cli-utils 1.1.15-3bpo8+1 amd64 cluster resource manager command line utilities
ii pacemaker-common 1.1.15-3
bpo8+1 all cluster resource manager common files
ii pacemaker-resource-agents 1.1.15-3~bpo8+1 all cluster resource manager general resource agents

prometheus-client (0.1.1)

Thanks for helping

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.