com.fizzed:ninja-prometheus

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

ninja-prometheus
Last Version

Last Version

0.0.4
Release Date

Release Date

Type

Type

pom
Description

Description

Parent pom for all Fizzed maven projects
Project Organization

Project Organization

Fizzed, Inc
Source Code Management

Source Code Management

https://github.com/fizzed/ninja-prometheus.git

Download ninja-prometheus

How to add to project

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

Dependencies

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

Project Modules

  • ninja-prometheus-module
  • ninja-prometheus-demo

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.4
0.0.3
0.0.2
0.0.1