Monitoring#
Monitoring is implemented as sending data to InfluxDB. Monitoring for LUNA Streams is enabled by default. Monitoring for FaceStream is disabled by default. To enable FaceStream monitoring, you need to enable the "send_data" setting and set additional settings from the "monitoring" section.
Monitoring for LUNA Streams works similarly to monitoring of LUNA PLATFORM services. This document describes FaceStream monitoring information. See additional information on monitoring LUNA Streams in the "Monitoring" section of the LUNA PLATFORM administrator manual.
The following data is sent to InfluxDB:
measurement
element. It is equal to the value offs-requests
.-
tag set:
fs_ip
- IP address where FaceStream is deployedsource
- the "name" field set when creating a stream in LUNA Streams (optional)stream_id
- stream ID
-
field set:
track_id
- track IDevent_id
- event IDrequest_id
- external ID for communication with monitoring of LUNA PLATFORM servicestrack_start_time
- track start timetrack_best_shot_time
- the time when the frame with the bestshot being sent appeared in the systemtrack_best_shot_min_size_time
(optional) - the time when the detection size reached the value specified in the "best_shot_min_size" parametertrack_best_shot_proper_size_time
(optional) - time when the detection size reached the value specified in the "best_shot_proper_size" parameterliveness_start_time
(optional) - Liveness start timeliveness_end_time
(optional) - Liveness end timebestshot_count
- the number of bestshots senttime_from_first_frame_to_send
- the time that passed from the appearance of the first frame in FS to sending to LPtrack_send_count
- the number of tracks sent
Tags containing time are sent as UTC with microsecond precision.
-
<timestamp>
element. Is the time the bestshot(s) was(were) sent in microseconds.
There may be several bestshots, because sending from one track at a time counts as one measurement. To save this measurement, InfluxDB uses the last bestshot data from the bestshots group. Data that is unique for each best shot (
track_best_shot_time
,liveness_start_time
,liveness_end_time
) will be lost for all bestshots except the last one if sent this way.
If there are no optional fields, the data of these fields will not be sent to the Influxdb.
During normal monitoring operation, no additional information is output to the FaceStream logs. If an error is detected during monitoring, the corresponding message will appear in the FaceStream logs.
InfluxDB OSS 2#
For InfluxDB OSS 2 usage, you should:
- Install the DB. See the "InfluxDB OSS 2 container launch" in the installation without LP manual.
- Register in the DB. InfluxDB has a user interface where you can register. You should visit
<server_ip>:<influx_port>
. - Configure the display of monitoring information in the GUI. It is not described in this documentation.