metrics

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GetCWA = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "teler_cwa",
			Help: "Get lists of Common Web Attack threats",
		},
		[]string{"description", "remote_addr", "request_uri", "status"},
	)

	GetCVE = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "teler_cve",
			Help: "Get lists of CVE threats",
		},
		[]string{"description", "remote_addr", "request_uri", "status"},
	)

	GetBadCrawler = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "teler_badcrawler",
			Help: "Get lists of Bad Crawler requests",
		},
		[]string{"remote_addr", "http_user_agent", "status"},
	)

	GetDirBruteforce = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "teler_dir_bruteforce",
			Help: "Get lists of Directories Bruteforced",
		},
		[]string{"remote_addr", "request_uri", "status"},
	)

	GetBadIP = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "teler_badip_count",
			Help: "Total number of Bad IP Addresses",
		},
		[]string{"remote_addr"},
	)

	GetBadReferrer = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "teler_bad_referrer",
			Help: "Get lists of Bad Referrer requests",
		},
		[]string{"http_referer"},
	)

	GetThreatTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "teler_threats_count_total",
			Help: "Total number of detected threats",
		},
		[]string{"case"},
	)
)

Defines its Prometheus metrics variables

Functions

func Init

func Init()

Init will register a Prometheus metrics with the specified variables

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL