diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-12-14 11:23:42 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-12-14 11:23:42 +0000 |
commit | 78d4d89b478736300bf3dcd691e97af22b8f10fb (patch) | |
tree | 850b975a990ca87419563156b9f62b96cbd9e036 | |
parent | 95bd51022700ad4537578d73523c90788e2e3da3 (diff) |
Add missing type for OMT_INFO.
Changes output like this:
# HELP bgpd bgpd information
-# TYPE bgpd unknown
+# TYPE bgpd info
bgpd_info{nodename="xxx",domainname="xxx",release="7.7"} 1
-rw-r--r-- | usr.sbin/bgpctl/ometric.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/ometric.c b/usr.sbin/bgpctl/ometric.c index b2a9d80599a..e525426206d 100644 --- a/usr.sbin/bgpctl/ometric.c +++ b/usr.sbin/bgpctl/ometric.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ometric.c,v 1.8 2022/12/12 09:51:04 claudio Exp $ */ +/* $OpenBSD: ometric.c,v 1.9 2022/12/14 11:23:41 claudio Exp $ */ /* * Copyright (c) 2022 Claudio Jeker <claudio@openbsd.org> @@ -278,6 +278,8 @@ ometric_type(enum ometric_type type) return "histogram"; case OMT_SUMMARY: return "summary"; + case OMT_INFO: + return "info"; default: return "unknown"; } |