{{template "base" .}} {{define "content"}}
Metrics
Real-time CrowdSec statistics from cscli metrics
{{if .CLIAvailable}} Refresh {{end}}
{{if not .CLIAvailable}}
cscli unavailable Metrics require the cscli binary. Mount it at the CSCLI_PATH configured in your environment.
{{end}} {{if .Sections}} {{range .Sections}}
{{.Title}}
{{if and .Headers .Rows}}
{{range .Headers}}{{end}} {{range .Rows}} {{range .}}{{end}} {{end}}
{{.}}
{{.}}
{{else}}
No data in this section
{{end}}
{{end}} {{else if .CLIAvailable}} {{if .RawOutput}}
Raw cscli metrics output
{{.RawOutput}}
{{else}}
No metrics available
CrowdSec may not have processed any data yet
{{end}} {{end}}
{{end}}