Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stayrtr info (hostname and version) in metrics output #133

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Rock-Y
Copy link

@Rock-Y Rock-Y commented Nov 29, 2024

This diff adds the hostname, domainname and version in the metrics output.

# HELP rtr_info stayrtr info.
# TYPE rtr_info gauge
rtr_info{domainname="<domainname>",nodename="<hostname>",version="StayRTR 0.6.1"} 1

metrics.out.log

This is similar to what bgplgd and rpki-client metrics offer:

# HELP bgpd bgpd information
# TYPE bgpd info
bgpd_info{nodename="<hostname>",domainname="<domainname>",release="8.6"} 1

or

# HELP rpki_client rpki-client information
# TYPE rpki_client gauge
rpki_client_info{nodename="<hostname>",domainname="<domainname>",release="9.3"} 1

This makes it possible to use the name in grafana dashboards, for example.

Untested.

This diff should add the hostname and version in the metrics output.

Expected result:
```
# HELP rtr_info stayrtr info.
# TYPE rtr_info gauge
rtr_info{nodename="<hostname>",version="StayRTR 0.6.1"} 1
```

This would be similar to what bgplgd and rpki-client metrics offer:
```
# HELP bgpd bgpd information
# TYPE bgpd info
bgpd_info{nodename="<hostname>",domainname="<domainname>",release="8.6"} 1
```
or
```
# HELP rpki_client rpki-client information
# TYPE rpki_client gauge
rpki_client_info{nodename="<hostname>",domainname="<domainname>",release="9.3"} 1
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant