com.fizzed:ninja-prometheus

Parent pom for all Fizzed maven projects

Лицензия

Лицензия

Категории

Категории

Prometheus Тестирование приложения и мониторинг Monitoring Ninja Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

com.fizzed
Идентификатор

Идентификатор

ninja-prometheus
Последняя версия

Последняя версия

0.0.4
Дата

Дата

Тип

Тип

pom
Описание

Описание

Parent pom for all Fizzed maven projects
Организация-разработчик

Организация-разработчик

Fizzed, Inc
Система контроля версий

Система контроля версий

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

Скачать ninja-prometheus

Имя Файла Размер
ninja-prometheus-0.0.4.pom 3 KB
Обзор

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • 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

Версии библиотеки

Версия
0.0.4
0.0.3
0.0.2
0.0.1