The live version of Baskerville is designed to consume (ATS) logs from a Kafka topic
in predefined intervals (`time bucket` set to 120 seconds by default),
while a runtime is ongoing. This will be integrated into the online
Deflect analysis engine, and receive logs directly from ATS.
As logs are supplied to the Baskerville engine and processed, various metrics are
produced, e.g. the number of incoming request sets, the average feature values for
these request sets, and the predictions and/or labels (normal/anomalous) associated
with these request sets. These metrics are exported to Prometheus, which publishes
them for consumption by Grafana and other subscribers.
Grafana is a metrics visualization web application that can be configured to
display several dashboards with charts, raise alerts when metric crosses a user defined threshold and notify through mail or other means. Within Baskerville, under data/metrics, there is an importable to Grafana dashboard which presents the statistics of the Baskerville engine in a customisable manner. It is intended to be the principal visualisation and alerting tool of incoming Deflect traffic, displaying metrics in graphical form.
Prometheus is the metric storage and aggregator that provides Grafana with the charts data.