<commit_before># Metrics in Navitia

## Kraken

Kraken expose its metrics by using the [prometheus interface](https://prometheus.io/docs/concepts/data_model/).
All kraken's metrics have a label `coverage` associated to them that correspond to the coverage name.


| metric                               | Type      | description                                                                                          | labels                                   |
|--------------------------------------|-----------|------------------------------------------------------------------------------------------------------|------------------------------------------|
| kraken_request_duration_seconds      | Histogram | Duration of requests                                                                                 | api: the name of the kraken api measured |
| kraken_request_in_flight             | Gauge     | Number of request currently being handled                                                            |                                          |
| kraken_data_loading_duration_seconds | Histogram | Duration of data loading from data.nav.lz4                                                           |                                          |
| kraken_data_cloning_duration_seconds | Histogram | Duration of Data cloning when applying disruption or realtime                                       |                                          |
| kraken_handle_rt_duration_seconds    | Histogram | Duration of disruption or realtime handling from the start of clonning to the end of all computation |                                          |<commit_msg>Apply suggestions from code review<commit_after># Metrics in Navitia

## Kraken

Kraken exposes its metrics by using the [prometheus interface](https://prometheus.io/docs/concepts/data_model/).
All kraken's metrics have a label `coverage` associated to them that corresponds to the coverage name.


| metric                               | Type      | description                                                                                          | labels                                   |
|--------------------------------------|-----------|------------------------------------------------------------------------------------------------------|------------------------------------------|
| kraken_request_duration_seconds      | Histogram | Duration of requests                                                                                 | api: the name of the kraken api measured |
| kraken_request_in_flight             | Gauge     | Number of request currently being handled                                                            |                                          |
| kraken_data_loading_duration_seconds | Histogram | Duration of data loading from data.nav.lz4                                                           |                                          |
| kraken_data_cloning_duration_seconds | Histogram | Duration of data cloning when applying disruption or realtime                                       |                                          |
| kraken_handle_rt_duration_seconds    | Histogram | Duration of disruption/realtime handling from the start of cloning to the end of all computations |                                          |
{'fraction_non_alphanumeric': 0.15175909361955875, 'fraction_numerical': 0.0005963029218843172, 'mean_word_length': 0.8333333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 49, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4093979', 'n_tokens_mistral': 548, 'n_tokens_neox': 519, 'n_words': 188}