<commit_before># vertx-prometheus-metrics

[![Build Status](https://img.shields.io/travis/nolequen/vertx-prometheus-metrics.svg?branch=master&style=flat-square)](https://travis-ci.org/nolequen/vertx-prometheus-metrics)
[![Dependency Status](https://www.versioneye.com/user/projects/596d0ea90fb24f00558fe198/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/596d0ea90fb24f00558fe198)
[![Codacy Badge](https://img.shields.io/codacy/03b7a792c7e44d41a19596665ba12d27.svg?style=flat-square)](https://www.codacy.com/app/nolequen/vertx-prometheus-metrics?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=nolequen/vertx-prometheus-metrics&amp;utm_campaign=Badge_Grade)
[![License](http://img.shields.io/:license-apache-brightgreen.svg?style=flat-square)](http://www.apache.org/licenses/LICENSE-2.0.html)

[Prometheus](https://prometheus.io/) implementation of the [Vert.x Metrics SPI](http://vertx.io/docs/vertx-core/java/index.html#_metrics_spi).<commit_msg>maven release<commit_after># vertx-prometheus-metrics

[![Build Status](https://img.shields.io/travis/nolequen/vertx-prometheus-metrics.svg?branch=master&style=flat-square)](https://travis-ci.org/nolequen/vertx-prometheus-metrics)
[![Maven Central](https://img.shields.io/maven-central/v/su.nlq/vertx-prometheus-metrics.svg?style=flat-square)](https://maven-badges.herokuapp.com/maven-central/su.nlq/vertx-prometheus-metrics)
[![GitHub release](https://img.shields.io/github/release/nolequen/vertx-prometheus-metrics.svg?style=flat-square)](https://github.com/nolequen/vertx-prometheus-metrics/releases/latest)
[![Dependency Status](https://www.versioneye.com/user/projects/596d0ea90fb24f00558fe198/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/596d0ea90fb24f00558fe198)
[![Codacy Badge](https://img.shields.io/codacy/03b7a792c7e44d41a19596665ba12d27.svg?style=flat-square)](https://www.codacy.com/app/nolequen/vertx-prometheus-metrics?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=nolequen/vertx-prometheus-metrics&amp;utm_campaign=Badge_Grade)
[![License](http://img.shields.io/:license-apache-brightgreen.svg?style=flat-square)](http://www.apache.org/licenses/LICENSE-2.0.html)

[Prometheus](https://prometheus.io/) implementation of the [Vert.x Metrics SPI](http://vertx.io/docs/vertx-core/java/index.html#_metrics_spi).

## Usage

You can find latest release on Maven Central.

* Maven:
```xml
<dependency>
  <groupId>su.nlq</groupId>
  <artifactId>vertx-prometheus-metrics</artifactId>
  <version>0.13</version>
</dependency>
```

* Gradle:
```groovy
compile group: 'su.nlq', name: 'vertx-prometheus-metrics', version: '0.13'
```

Now you can enable vertx metrics:
```java
final Vertx vertx = Vertx.vertx(new VertxOptions().setMetricsOptions(
    new VertxPrometheusOptions().setEnabled(true)
));
```

## Options

to be described...

## Metrics

to be described...
{'fraction_non_alphanumeric': 0.17575966850828728, 'fraction_numerical': 0.04143646408839779, 'mean_word_length': 6.850948509485095, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 18, 'lorem ipsum': 0, 'www.': 8, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '154755', 'n_tokens_mistral': 1204, 'n_tokens_neox': 1073, 'n_words': 83}