policy/frameworks/telemetry/log.zeek
- Telemetry
Implementation of a telemetry.log and telemetry_histogram.log file using metrics accessible via the Telemetry module.
- Namespace
Telemetry
- Imports
Summary
Runtime Options
How often metrics are reported. |
|
Only metrics with prefixes in this set will be included in the telemetry.log and telemetry_histogram.log files by default. |
Types
Record type used for logging histogram metrics. |
|
Record type used for logging counter and gauge metrics. |
Redefinitions
Events
Event triggered for every record in the stream. |
|
Event triggered for every record in the histogram stream. |
Hooks
A default logging policy hook for the stream. |
|
A default logging policy hook for the histogram stream. |
Detailed Interface
Runtime Options
- Telemetry::log_interval
-
How often metrics are reported.
- Telemetry::log_prefixes
-
Only metrics with prefixes in this set will be included in the telemetry.log and telemetry_histogram.log files by default. Setting this option to an empty set includes all prefixes.
For more fine-grained customization, setting this option to an empty set and implementing the
Telemetry::log_policy
andTelemetry::log_policy_histogram
hooks to filter individual records is recommended.
Types
- Telemetry::HistogramInfo
- Type
-
- ts:
time
&log
Timestamp of reporting.
- peer:
string
&log
Peer that generated this log.
- name:
string
&log
The name of the metric.
- labels:
vector
ofstring
&log
The names of the individual labels.
- label_values:
vector
ofstring
&log
The values of the labels as listed in
labels
.- bounds:
vector
ofdouble
&log
The bounds of the individual buckets
- values:
vector
ofdouble
&log
The number of observations within each individual bucket.
- sum:
double
&log
The sum over all observations
- observations:
double
&log
The total number of observations.
- ts:
Record type used for logging histogram metrics.
- Telemetry::Info
- Type
-
- ts:
time
&log
Timestamp of reporting.
- peer:
string
&log
Peer that generated this log.
- metric_type:
string
&log
Contains the value “counter” or “gauge” depending on the underlying metric type.
- name:
string
&log
The name of the metric.
- labels:
vector
ofstring
&log
The names of the individual labels.
- label_values:
vector
ofstring
&log
The values of the labels as listed in
labels
.- value:
double
&log
The value of this metric.
- ts:
Record type used for logging counter and gauge metrics.
Events
- Telemetry::log_telemetry
- Type
event
(rec:Telemetry::Info
)
Event triggered for every record in the stream.
- Telemetry::log_telemetry_histogram
- Type
event
(rec:Telemetry::HistogramInfo
)
Event triggered for every record in the histogram stream.
Hooks
- Telemetry::log_policy
- Type
A default logging policy hook for the stream.
- Telemetry::log_policy_histogram
- Type
A default logging policy hook for the histogram stream.