GithubHelp home page GithubHelp logo

aatools / ib-metrics-pyclient Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 3.0 94 KB

Python client for pushing IBM Integration Bus metrics to Prometheus pushgateway.

License: MIT License

Python 100.00%
ib-metrics-pyclient ibm-integration-bus collect-metrics pushgateway grafana-dashboard prometheus

ib-metrics-pyclient's People

Contributors

nicko858 avatar woblerr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ib-metrics-pyclient's Issues

Move additional functions in individual modules

It would be great all the additional functions for IB objects to take out of the module iib_metrics_clientand put them in separate modules.

As is:

In [4]: inspect.getmembers(iib_metrics_client, inspect.isfunction)
Out[4]: 
[('format_applications', <function iib_metrics_client.format_applications>),
 ('format_broker', <function iib_metrics_client.format_broker>),
 ('format_exec_groups', <function iib_metrics_client.format_exec_groups>),
 ('format_message_flows', <function iib_metrics_client.format_message_flows>),
 ('get_broker_items', <function iib_metrics_client.get_broker_items>),
 ('get_brokers_status', <function iib_metrics_client.get_brokers_status>),
 ('main', <function iib_metrics_client.main>),
 ('put_metric_to_gateway',
  <function iib_metrics_client.put_metric_to_gateway>),
 ('run_iib_command', <function modules.iib_api.run_iib_command>),
 ('set_logger', <function log.logger_client.set_logger>)]

Add TYPE and HELP annotations for metrics

For pushgateway /metrics endpoint:

  • As is:
# TYPE ib_broker_status untyped
ib_broker_status{brokername="BRK1",instance="",job="BRK1",qmname="QM1"} 1
  • Should be:
# HELP ib_broker_status Current status of IB broker.
# TYPE ib_broker_status gauge
ib_broker_status{brokername="BRK1",instance="",job="BRK1",qmname="QM1"} 1

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.