zeek/testing/btest/scripts/base/frameworks
Arne Welzel 69a98e2cbb logging: Add telemetry for streams and log writers
This adds one metric per log stream and one metric per log writer (path based)
to track the number of writes on a stream level as well as on a writer level.

    $ curl -sSf localhost:8181/metrics | grep Conn
    zeek_log_writer_writes_total{endpoint="",filter-name="default",module="HTTP",path="http",stream="HTTP::LOG",writer="Log::WRITER_SQLITE"} 1 1677497572770
    zeek_log_stream_writes_total{endpoint="",module="HTTP",stream="HTTP::LOG"} 1 1677497572770

The initial version of this change also included metrics around log
write vetoes, but given no log policies exist in the default configuration
and they are mostly interesting for a few streams/writers only, skip this
for now. These can always be added by the script writer, too.

The difference between the stream level writes and concrete writers can
be used to deduce the number of vetoes (or errors) as a starting point.
2023-02-27 12:51:03 +01:00
..
analyzer Update scripts.base.frameworks.analyzer.logging btest to use a different trace file 2023-01-26 09:14:00 -07:00
cluster General btest cleanup 2020-08-11 11:26:22 -07:00
config btest: Remove unnecessary loading of frameworks/dpd 2022-08-31 16:50:37 +02:00
control Remove unnecessary -B arguments from Zeek invocations in testsuite 2021-06-24 17:05:32 -07:00
dpd Add DPD::max_violations option 2019-07-19 13:00:02 -07:00
file-analysis Spelling testing 2022-11-16 20:05:03 -05:00
input input: Add location info for invalid enums 2022-11-29 12:36:11 +01:00
intel Expand scripts.base.frameworks.intel.cluster-transparency test 2022-06-01 22:26:25 -07:00
logging logging: Add telemetry for streams and log writers 2023-02-27 12:51:03 +01:00
netcontrol btest/net-control: Use different expiration times for rules 2023-01-09 18:11:55 +01:00
notice analyzer/files: handle non-analyzer names in describe_file() 2022-12-06 11:17:30 +01:00
openflow "balance" tests with multiple Zeek scripts to load the same elements 2021-03-24 21:37:26 -07:00
packet-filter General btest cleanup 2020-08-11 11:26:22 -07:00
reporter General btest cleanup 2020-08-11 11:26:22 -07:00
software updates to btests to support switch to expression-based initialization 2022-03-23 15:36:35 -07:00
sumstats Spelling testing 2022-11-16 20:05:03 -05:00
telemetry EventHandler: Use telemetry framework for EventHandler.call_count 2023-02-22 12:10:10 +01:00