artemis-prometheus-metrics-plugin | metrics plugin implementation for the ActiveMQ | Analytics library

 by   rh-messaging Java Version: Current License: Apache-2.0

kandi X-RAY | artemis-prometheus-metrics-plugin Summary

kandi X-RAY | artemis-prometheus-metrics-plugin Summary

artemis-prometheus-metrics-plugin is a Java library typically used in Analytics, Docker, Prometheus applications. artemis-prometheus-metrics-plugin has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

This is a metrics plugin implementation for the ActiveMQ Artemis message broker. It provides integration with Prometheus using two modules:.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              artemis-prometheus-metrics-plugin has a low active ecosystem.
              It has 7 star(s) with 6 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 2 open issues and 0 have been closed. On average issues are closed in 157 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of artemis-prometheus-metrics-plugin is current.

            kandi-Quality Quality

              artemis-prometheus-metrics-plugin has 0 bugs and 0 code smells.

            kandi-Security Security

              artemis-prometheus-metrics-plugin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              artemis-prometheus-metrics-plugin code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              artemis-prometheus-metrics-plugin is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              artemis-prometheus-metrics-plugin releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              It has 192 lines of code, 5 functions and 6 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed artemis-prometheus-metrics-plugin and discovered the below as its top functions. This is intended to give you an instant insight into artemis-prometheus-metrics-plugin implemented functionality, and help decide if they suit your requirements.
            • Handles GET requests
            • Get metrics
            Get all kandi verified functions for this library.

            artemis-prometheus-metrics-plugin Key Features

            No Key Features are available at this moment for artemis-prometheus-metrics-plugin.

            artemis-prometheus-metrics-plugin Examples and Code Snippets

            No Code Snippets are available at this moment for artemis-prometheus-metrics-plugin.

            Community Discussions

            QUESTION

            Sending metrics from ActiveMQ Artemis to Prometheus
            Asked 2021-Jun-05 at 06:30

            I have a question on which I am stuck and I am not quite sure how to resolve it.

            In my work project I have an ActiveMQ queue and I want to send some metrics to Prometheus which will help me to create some alerts in Grafana. I know that for ActiveMQ Artemis I can use this plugin, but I don't understand 100% how to configure it.

            My application is deployed on a Kubernetes cluster and the ActiveMQ broker is there too. So I have created ActiveMQPrometheusMetricsPlugin class which implements org.apache.activemq.artemis.core.server.metrics.ActiveMQMetricsPlugin. Now is where I get confused right now I should deploy my application and the metrics would be gather by Prometheus? I should do more configuration?

            We usually do not build the application on local env. We are using a pipeline which is building and deploying the app to various envs (dev, test, prod). I should do the configuration similar with the GitHub plugin project, deploy it, and after that find those jars on Kubernetes and move them to the correct location? Also dev-ops said to me that we are using a default conf. I don't know if we have a broker.xml file.

            ...

            ANSWER

            Answered 2021-Jun-03 at 16:09

            There are a couple of important points to understand before getting started:

            • When using the Artemis Prometheus Metrics Plugin neither the broker nor the applications "send" metrics to Prometheus. Prometheus itself must retrieve or "scrape" metrics from the broker. This is why the plugin comes with a servlet. The servlet exposes an HTTP endpoint that Prometheus can use to scrape metrics.
            • The Artemis Prometheus Metrics Plugin is part of the broker infrastructure. It is not to be deployed as part of an application. The plugin's jar and war files are deployed on the broker and configured in broker.xml and bootstrap.xml respectively.

            The Artemis Prometheus Metrics Plugin provides integration with Prometheus using two modules:

            • artemis-prometheus-metrics-plugin: This provides the actual implementation of org.apache.activemq.artemis.core.server.metrics.ActiveMQMetricsPlugin and packages it with the Micrometer and Prometheus dependencies in an "uber" jar.

            • artemis-prometheus-metrics-plugin-servlet: This provides a war file containing a simple servlet which can be deployed to the broker's embedded web server which then Prometheus can use to scrape metrics.

            Once you clone the Artemis Prometheus Metrics Plugin repository simply run mvn install to build these two modules. The output will be in their respective target directories.

            After building the modules follow these steps to deploy and configure the Artemis Prometheus Metrics Plugin. If you have some kind of dev-ops group which manages and configures your broker then they would follow these steps.

            1. Copy artemis-prometheus-metrics-plugin/target/artemis-prometheus-metrics-plugin-.jar to /lib.

            2. Add this to your /etc/broker.xml:

            Source https://stackoverflow.com/questions/67806739

            QUESTION

            ActiveMQ Artemis http and https in bootstrap.xml
            Asked 2020-Aug-20 at 12:50

            I hope you have an idea.

            I am working with an ActiveMQ Artemis Broker and installed a metrics plugin to use with prometheus and grafana (https://github.com/rh-messaging/artemis-prometheus-metrics-plugin/). Like the instruction says, I added to the bootstrap.xml

            We're working with a vendor providing us with the Grafana dashboards as long as we are providing metrics they can work with. The problem is that the vendor wants to access the metrics page (https://activemq:port/metrics) via HTTP and not HTTPS, which is configured in the bootstrap.xml ( ) Their effort would be disproportionately high to change their system to work with HTTPS now.

            Is it possible to configure the jetty-Webserver to serve the console etc. via HTTPS and the URL activemq:port/metrics via HTTP?

            I tried to add another web-container in the bootstrap.xml, now binding bind="http://0.0.0.0:port/" and adding the metrics plugin in it but the webserver wasn't happy with two web-containers :/

            Thanks for your help :)

            ...

            ANSWER

            Answered 2020-Aug-20 at 12:50

            This is not currently possible. However, the project could be enhanced to support multiple web instances in bootstrap.xml. Contributions are always welcome.

            Source https://stackoverflow.com/questions/63502491

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install artemis-prometheus-metrics-plugin

            You can download it from GitHub.
            You can use artemis-prometheus-metrics-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the artemis-prometheus-metrics-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/rh-messaging/artemis-prometheus-metrics-plugin.git

          • CLI

            gh repo clone rh-messaging/artemis-prometheus-metrics-plugin

          • sshUrl

            git@github.com:rh-messaging/artemis-prometheus-metrics-plugin.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Analytics Libraries

            superset

            by apache

            influxdb

            by influxdata

            matomo

            by matomo-org

            statsd

            by statsd

            loki

            by grafana

            Try Top Libraries by rh-messaging

            activemq-artemis-operator

            by rh-messagingGo

            artemis-hawtio

            by rh-messagingJavaScript

            amq7-training

            by rh-messagingJava

            cli-java

            by rh-messagingJava

            activemq-artemis

            by rh-messagingJava