com.fizzed:prometheus-plus

Parent pom for all Fizzed maven projects

License

License

Categories

Categories

Prometheus Application Testing & Monitoring Monitoring
GroupId

GroupId

com.fizzed
ArtifactId

ArtifactId

prometheus-plus
Last Version

Last Version

0.0.5
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 prometheus-plus

How to add to project

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

Dependencies

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

Project Modules

  • prometheus-ninja-module
  • prometheus-ninja-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.5