Siddhi IO Prometheus Extension Parent

WSO2 is an open source application development software company focused on providing service-oriented architecture solutions for professional developers.

License

License

Categories

Categories

Siddhi Business Logic Libraries Machine Learning Prometheus Application Testing & Monitoring Monitoring
GroupId

GroupId

org.wso2.extension.siddhi.io.prometheus
ArtifactId

ArtifactId

siddhi-io-prometheus-parent
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

zip
Description

Description

Siddhi IO Prometheus Extension Parent
WSO2 is an open source application development software company focused on providing service-oriented architecture solutions for professional developers.
Project Organization

Project Organization

WSO2
Source Code Management

Source Code Management

https://github.com/wso2-extensions/siddhi-io-prometheus.git

Download siddhi-io-prometheus-parent

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • component

Siddhi IO Prometheus

Jenkins Build Status GitHub Release GitHub Release Date GitHub Open Issues GitHub Last Commit License

The siddhi-io-prometheus extension is an extension to Siddhi that consumes and expose Prometheus metrics from/to Prometheus server.

For information on Siddhi and it's features refer Siddhi Documentation.

Download

  • Versions 2.x and above with group id io.siddhi.extension.* from here.
  • Versions 1.x and lower with group id org.wso2.extension.siddhi.* from here.

Latest API Docs

Latest API Docs is 2.1.2.

Features

  • prometheus (Sink)

    This sink publishes events processed by Siddhi into Prometheus metrics and exposes them to the Prometheus server at the specified URL. The created metrics can be published to Prometheus via 'server' or 'pushGateway', depending on your preference.
     The metric types that are supported by the Prometheus sink are 'counter', 'gauge', 'histogram', and 'summary'. The values and labels of the Prometheus metrics can be updated through the events.

  • prometheus (Source)

    This source consumes Prometheus metrics that are exported from a specified URL as Siddhi events by sending HTTP requests to the URL. Based on the source configuration, it analyzes metrics from the text response and sends them as Siddhi events through key-value mapping.The user can retrieve metrics of the 'including', 'counter', 'gauge', 'histogram', and 'summary' types. The source retrieves the metrics from a text response of the target. Therefore, it is you need to use 'string' as the attribute type for the attributes that correspond with the Prometheus metric labels. Further, the Prometheus metric value is passed through the event as 'value'. This requires you to include an attribute named 'value' in the stream definition.
    The supported types for the 'value' attribute are 'INT', 'LONG', 'FLOAT', and 'DOUBLE'.

Dependencies

  • Prometheus server instance should be started.

  • Prometheus Pushgateway should be started. (optional)

  • Download and copy the prometheus client jars to the Siddhi Class path from https://mvnrepository.com/artifact/io.prometheus

    • simpleclient_common-*.jar
    • simpleclient-*.jar
    • simpleclient_httpserver-*.jar
    • simpleclient_pushgateway-*.jar

Installation

For installing this extension on various siddhi execution environments refer Siddhi documentation section on adding extensions.

Integration Test with Local Docker (Optional)

  • The prometheus sink can be tested with the Docker base integration test framework. The test framework initialize a Docker container with required configuration before execute the test suit.

    To start integration tests,

    1. Install and run Docker

    2. To run the integration tests,

      • navigate to the siddhi-io-prometheus/ directory and issue the following command.
        mvn verify -P local-prometheus
        
  • Prometheus target configurations can be modified at the directory for integration tests :

    siddhi-io-prometheus/component/src/test/resources/prometheus/prometheus.yml

Support and Contribution

  • We encourage users to ask questions and get support via StackOverflow, make sure to add the siddhi tag to the issue for better response.

  • If you find any issues related to the extension please report them on the issue tracker.

  • For production support and other contribution related information refer Siddhi Community documentation.

org.wso2.extension.siddhi.io.prometheus

WSO2 Extensions

Versions

Version
1.0.3
1.0.2
1.0.1
1.0.0