Add iplist_size metric

This commit is contained in:
9seconds
2022-03-11 16:20:11 +03:00
parent 4687a7c899
commit 30170b9413
19 changed files with 206 additions and 26 deletions
+16
View File
@@ -89,6 +89,13 @@ const (
// Type: counter
MetricReplayAttacks = "replay_attacks"
// MetricIPListSize defines a metric for the size of the the ip list.
//
// Type: gauge
// Tags:
// ip_list | 'allowlist' or 'blocklist'
MetricIPListSize = "iplist_size"
// TagIPFamily defines a name of the 'ip_family' tag and all values.
TagIPFamily = "ip_family"
@@ -114,4 +121,13 @@ const (
// TagDirectionFromClient defines that traffic is sent from a client to
// Telegram.
TagDirectionFromClient = "from_client"
// TagIPList defines a name of the 'ip_list' and all values.
TagIPList = "ip_list"
// TagIPListAllow defines a value of 'ip_list' of allowlist.
TagIPListAllow = "allowlist"
// TagIPListBlock defines a value of 'ip_list' of blocklist.
TagIPListBlock = "blocklist"
)