File: stats.md

package info (click to toggle)
fort-validator 1.6.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,064 kB
  • sloc: ansic: 33,015; makefile: 239; sh: 47; javascript: 30; xml: 15
file content (42 lines) | stat: -rw-r--r-- 1,304 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: Stats
---

# {{ page.title }}

Enable the Prometheus server with [`--prometheus.port`](usage.html#--prometheusport) and [`--mode=server`](usage.html#--mode):

```bash
$ fort --mode=server --prometheus.port=8000 /path/to/tal
$ curl localhost:8000/metrics
fort_rtr_ready 1 1757646873
fort_rtr_current_connections 0 1757646873
fort_valid_vrps_total{ta="test",proto="ipv4"} 44 1757646873
fort_valid_vrps_total{ta="test",proto="ipv6"} 66 1757646873
# EOF
```

The implementation is still very fresh, and prioritizes minimal monitoring over exhaustive reporting. Therefore, there are not many stats yet. Please request your preferred values via the [issue tracker](https://github.com/NICMx/FORT-validator/issues).

## `fort_rtr_ready`

- Type: Gauge (effectively boolean)

Starts as 0, becomes 1 when the validator has a complete VRP table to serve via RTR.

## `fort_rtr_current_connections`

- Type: Gauge

Number of presently open connections with RTR clients.

## `fort_valid_vrps_total{ta="<TA>",proto="<IP>"}`

- Type: Gauge

Total number of VRPs generated from TA `<TA>` and protocol `<IP>` during the previous validation cycle.

Labels:

- `<TA>` is the TAL's file name, minus extension. (The `<TA>` of "`/etc/fort/tal/ripe-ncc.tal`" would be `ripe-ncc`.)
- `IP` is either `ipv4` or `ipv6`.