prometheus-ninja-module

Parent pom for all Fizzed maven projects

License

License

Categories

Categories

Prometheus Application Testing & Monitoring Monitoring Ninja User Interface Web Frameworks
GroupId

GroupId

com.fizzed
ArtifactId

ArtifactId

prometheus-ninja-module
Last Version

Last Version

0.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

prometheus-ninja-module
Parent pom for all Fizzed maven projects
Project Organization

Project Organization

Fizzed, Inc

Download prometheus-ninja-module

How to add to project

<!-- https://jarcasting.com/artifacts/com.fizzed/prometheus-ninja-module/ -->
<dependency>
    <groupId>com.fizzed</groupId>
    <artifactId>prometheus-ninja-module</artifactId>
    <version>0.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.fizzed/prometheus-ninja-module/
implementation 'com.fizzed:prometheus-ninja-module:0.0.5'
// https://jarcasting.com/artifacts/com.fizzed/prometheus-ninja-module/
implementation ("com.fizzed:prometheus-ninja-module:0.0.5")
'com.fizzed:prometheus-ninja-module:jar:0.0.5'
<dependency org="com.fizzed" name="prometheus-ninja-module" rev="0.0.5">
  <artifact name="prometheus-ninja-module" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.fizzed', module='prometheus-ninja-module', version='0.0.5')
)
libraryDependencies += "com.fizzed" % "prometheus-ninja-module" % "0.0.5"
[com.fizzed/prometheus-ninja-module "0.0.5"]

Dependencies

compile (3)

Group / Artifact Type Version
io.prometheus : simpleclient_common jar 0.9.0
io.prometheus : simpleclient_dropwizard jar 0.9.0
io.prometheus : simpleclient_hotspot jar 0.9.0

provided (1)

Group / Artifact Type Version
org.ninjaframework : ninja-core jar 6.0.0

test (3)

Group / Artifact Type Version
org.hamcrest : java-hamcrest jar 2.0.0.0
junit : junit jar 4.12
org.mockito : mockito-core jar 1.9.5

Project Modules

There are no modules declared in this project.

Ninja Framework + Prometheus by Fizzed

Maven Central

Fizzed, Inc. (Follow on Twitter: @fizzed_inc)

Overview

Integration of Prometheus with the Ninja Framework.

Setup

Add the prometheus-ninja-module dependency to your Maven pom.xml

<dependency>
    <groupId>com.fizzed</groupId>
    <artifactId>prometheus-ninja-module</artifactId>
    <version>0.0.5</version>
</dependency>

In your conf/Module.java file:

package conf;

import com.fizzed.prometheus.ninja.NinjaPrometheusModule;
import com.google.inject.AbstractModule;

public class Module extends AbstractModule {

    @Override
    protected void configure() {
        install(new NinjaPrometheusModule());
    }

}

In your conf/Routes.java file:

package conf;

import com.fizzed.prometheus.ninja.NinjaPrometheusRoutes;
import ninja.Results;
import ninja.Router;
import ninja.application.ApplicationRoutes;

public class Routes implements ApplicationRoutes {

    @Override
    public void init(Router router) {
        
        NinjaPrometheusRoutes.init(router);

    }
    
}

Demo

There is a Ninja app in the demo folder that demonstrates all the functionality this module provides and it's a simple way to see how it works. This project uses Blaze to help script tasks. Run the following in your shell (from the root project directory, not in demo):

java -jar blaze.jar demo

Once running, point your browser to http://localhost:8080/

License

Copyright (C) 2020 Fizzed, Inc.

This work is licensed under the Apache License, Version 2.0. See LICENSE for details.

com.fizzed

Fizzed, Inc.

Helping companies launch and grow their mobile, web, and data products

Versions

Version
0.0.5