Prometheus Protobuf Servlet

Protobuf formatter and HTTP servlet for Prometheus client

Лицензия

Лицензия

Категории

Категории

Protobuf Данные Data Structures Prometheus Тестирование приложения и мониторинг Monitoring
Группа

Группа

su.nlq
Идентификатор

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

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

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

0.6.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Prometheus Protobuf Servlet
Protobuf formatter and HTTP servlet for Prometheus client
Ссылка на сайт

Ссылка на сайт

https://github.com/nolequen/prometheus-protobuf-servlet
Система контроля версий

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

https://github.com/nolequen/prometheus-protobuf-servlet

Скачать prometheus-protobuf-servlet

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

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

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.jetbrains : annotations jar 16.0.3
com.google.protobuf : protobuf-java jar 3.6.1
io.prometheus : simpleclient jar 0.6.0

test (3)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.eclipse.jetty : jetty-servlet jar 9.4.14.v20181114
org.eclipse.jetty : jetty-client jar 9.4.14.v20181114

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

Данный проект не имеет модулей.

DEPRECATED

The project is no longer supported due to Prometheus no longer supports the Protobuf exposition format.

No Maintenance Intended Build Status Maven Central Codecov Codebeat

Protobuf exposition format support for Prometheus client.

Usage

You can find latest release on Maven Central.

  • Maven:
<dependency>
  <groupId>su.nlq</groupId>
  <artifactId>prometheus-protobuf-servlet</artifactId>
  <version>0.6.0</version>
</dependency>
  • Gradle:
compile group: 'su.nlq', name: 'prometheus-protobuf-servlet', version: '0.6.0'

The simple way to expose the metrics used in your code using Protobuf format is to add ProtobufMetricsServlet to your HTTP server. For example, you may do it with Jetty server:

final Server server = new Server(8080);
final ServletContextHandler context = new ServletContextHandler();
context.setContextPath("/");
server.setHandler(context);

context.addServlet(new ServletHolder(new ProtobufMetricsServlet()), "/metrics");

It also supports time series restriction using ?name[]= URL parameter.

Furthermore it is possible to use ProtobufFormatter directly and expose the result in any other way.

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

Версия
0.6.0
0.5.0
0.4
0.3
0.2
0.1.0