Commit graph

14 commits

Author SHA1 Message Date
Robin Sommer
9de2eceb2a
Merge remote-tracking branch 'origin/topic/awelzel/2262-telemetry-ditch-singleton-metrics'
* origin/topic/awelzel/2262-telemetry-ditch-singleton-metrics:
  telemetry: Remove singleton BIFs and the C++ pieces
2022-08-11 11:54:52 +02:00
Arne Welzel
32ee6960f2 telemetry: Switch to histogram family bucket and bound accessors
Instead of determining the bucket bounds from a concrete metric instance,
broker now provides accessors via the concrete histogram family handles.
2022-08-09 11:00:07 +02:00
Arne Welzel
acacc6b6c2 telemetry: Remove singleton BIFs and the C++ pieces
The low-level singleton Telemetry BIFs have been removed with the that there
haven't been any users. Singleton metrics can be instantiated by providing
an empty label vector instead and aren't in any way a special concept.

Closes #2262.
2022-08-05 19:33:49 +02:00
Arne Welzel
3fe930dbf2 Introduce telemetry framework
Adds base/frameworks/telemetry with wrappers around telemetry.bif
and updates telemetry/Manager to support collecting metrics from
script land.

Add policy/frameworks/telemetry/log for logging of metrics data
into a new telemetry.log and telemetry_histogram.log and add into
local.zeek by default.
2022-08-05 11:43:44 +02:00
Dominik Charousset
56f30b500a Update to latest Broker without public CAF dep 2021-12-20 08:16:21 +01:00
Tim Wojtulewicz
9af6b2f48d clang-format: Set penalty for breaking after assignment operator 2021-09-27 10:49:48 -07:00
Tim Wojtulewicz
b2f171ec69 Reformat the world 2021-09-16 15:35:39 -07:00
Dominik Charousset
27a39941db Add new Timer class to the telemetry API 2021-03-29 12:02:13 +02:00
Dominik Charousset
2bac354e43 Expose telemetry API to scripting land 2021-03-29 10:47:32 +02:00
Dominik Charousset
d4466db5ce Add handle types for histogram metrics 2021-03-29 10:47:32 +02:00
Dominik Charousset
2a21f2903a Adhere to Zeek coding style 2021-03-29 10:47:32 +02:00
Dominik Charousset
83d7d2da4c Add missing whitespaces for Zeek coding style 2021-03-29 10:47:32 +02:00
Dominik Charousset
59d114005e Add gauge metric types 2021-03-29 10:47:32 +02:00
Dominik Charousset
617e4137c6 Add scaffold for new metrics API with counters 2021-03-29 10:47:32 +02:00