Monitoring¶
Data for monitoring¶
We support two database options for collecting monitoring data: Clickhouse and InfluxDB. Depending on the database chosen, the structure and methodology for storing data vary.
Types of processed events
Our monitoring system processes the following event types:
- request (any http request) 
- error (failed http request) 
- licensing 
- sdk estimation 
- analytics manager 
Comparison of data formats for Clickhouse and InfluxDB:
InfluxDB: Each event is presented as a “point” in a time series. The structure of a point includes:
- series name 
- start event time 
- tags, indexed data in storage, dictionary: keys - string tag names, values - string, integer, float 
- fields, non indexed data in storage, dictionary: keys - string tag names, values - string, integer, float 
Clickhouse: In Clickhouse, the data structure resembles that of a traditional SQL table. Each event is represented as a record, where:
- The `time` field contains the record’s creation timestamp; 
- The `data` field contains a JSON object with all the information that would otherwise be distributed across tags and fields in InfluxDB. 
Important: In Clickhouse, there is no differentiation between “tags” and “fields”—all data is consolidated into a single JSON object within the data field.
Monitoring series¶
The structure and the meaning of each monitoring series remain consistent. However, for Clickhouse, data from tags and fields are merged into a single JSON object under the data field. Below are examples for each series:
- Requests series. - Triggered on every request. Each point contains a data about corresponding request (execution time and etc). - InfluxDB: - Requests series tags¶ - tag name - description - service - always “luna-remote-sdk” - route - concatenation of a request method and a request resource (POST:/sdk) - status_code - http status code of response - Requests series fields¶ - fields - description - request_id - request id - execution_time - request execution time - Requests series additional fields¶ - fields - resource - description - load_images_for_processing_time - /sdk - time taken to load image for processing from request - load_images_for_processing_time - /iso - time taken to load image for processing from request - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "route": "POST:/sdk", "status_code": 200, "request_id": "1536751345,6a5c2191-3e9b-f5a4-fc45-3abf43625c5f", "execution_time": 123.45 } 
- Errors series. - Triggered on failed request. Each point contains error_code of luna error. - InfluxDB: - Errors series tags¶ - tag name - description - service - always “luna-remote-sdk” - route - concatenation of a request method and a request resource (POST:/sdk) - status_code - http status code of response - error_code - Luna Platform error code - Errors series fields¶ - fields - description - request_id - request id - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "route": "POST:/sdk", "status_code": 500, "error_code": 13037, "request_id": "1536751345,6a5c2191-3e9b-f5a4-fc45-3abf43625c5f" } 
- Licensing series. - Triggered if liveness balance is over. Each point contains license check data. - InfluxDB: - Licensing series tags¶ - tag name - description - service - always “luna-remote-sdk” - license_status - license status (“warning”, “error”) - Licensing series fields¶ - fields - description - liveness_balance - number of liveness estimations before the license expires - warnings - license warning messages - errors - license errors messages - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "license_status": "warning", "liveness_balance": 100, "warnings": ["low balance"], "errors": [] } 
- Usages_statistic series. - Triggered on every request involving some SDK estimations. Each point contains data on the number of estimations performed. - InfluxDB: - Usages_statistic series tags¶ - tag name - description - service - always “luna-remote-sdk” - Usages_statistic series fields¶ - fields - description - people_counter_usages - people counter estimator usages count - face_detector_usages - face detector usages count - landmarks68_detector_usages - landmarks68 detector usages count - head_pose_estimator_usages - head pose estimator usages count - liveness_estimator_usages - liveness estimator usages count - mask_estimator_usages - mask estimator usages count - emotion_estimator_usages - emotion estimator usages count - mouth_estimator_usages - mouth estimator usages count - eye_estimator_usages - eye estimator usages count - gaze_estimator_usages - gaze estimator usages count - glasses_estimator_usages - glasses estimator usages count - face_occlusion_estimator_usages - face occlusion estimator usages count - face_warp_quality_estimator_usages - face warp quality estimator usages count - face_basic_attributes_extractor_usages - face basic attributes extractor usages count - face_descriptor_extractor_usages - face descriptor extractor usages count - iso_estimator_usages - iso estimator usages count - face_quality_estimator_usages - face quality estimator usages count - body_detector_usages - body detector estimator usages count - body_descriptor_extractor_usages - body descriptor extractor usages count - body_basic_attributes_estimator_usages - body basic attribute estimator usages count - body_upper_attributes_estimator_usages - body upper attribute estimator usages count - body_accessories_estimator_usages - body accessory estimator usages count - body_lower_attributes_estimator_usages - body lower attribute estimator usages count - deepfake_estimator_usages - deepfake estimator usages count - ClickHouse JSON `data` field Example: - { "date": "2024-10-20", "service": "luna-remote-sdk", "people_counter_usages": 0, "face_detector_usages": 0, "landmarks68_detector_usages": 0, "head_pose_estimator_usages": 0, "liveness_estimator_usages": 0, "mask_estimator_usages": 0, "emotion_estimator_usages": 0, "mouth_estimator_usages": 0, "eye_estimator_usages": 0, "gaze_estimator_usages": 0, "glasses_estimator_usages": 0, "face_occlusion_estimator_usages": 0, "face_warp_quality_estimator_usages": 0, "face_basic_attributes_extractor_usages": 0, "face_descriptor_extractor_usages": 0, "iso_estimator_usages": 0, "face_quality_estimator_usages": 0, "body_detector_usages": 0, "body_descriptor_extractor_usages": 0, "body_basic_attributes_estimator_usages": 0, "body_upper_attributes_estimator_usages": 0, "body_accessories_estimator_usages": 0, "body_lower_attributes_estimator_usages": 0, "deepfake_estimator_usages": 0 } 
- Sdkloop_task series. - SDK monitoring series. Triggered on every request involving some SDK estimations. Each point contains data on estimations performed. - InfluxDB: - Sdkloop_task series tags¶ - tag name - description - service - always “luna-remote-sdk” - image_count - number of images in request - Sdkloop_task series fields¶ - fields - description - execution_time - task execution time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "image_count": 10, "execution_time": 2.34 } 
- Image_load series. - SDK monitoring series. Triggered on every request involving some SDK estimations. Each point contains data on estimations performed. - InfluxDB: - Image_load series tags¶ - tag name - description - service - always “luna-remote-sdk” - format - image format, i.e. “JPEG”, “PNG”, etc. - exif - whether the exif loading is on - autorotated - whether the autorotation is on - Image_load series fields¶ - fields - description - execution_time - image loading time in seconds - size - image size in bytes - height - image height in pel - width - image width in pel - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "format": "JPEG", "exif": true, "autorotated": false, "execution_time": 0.56, "size": 1048576, "height": 1080, "width": 1920 } 
- Aggregated_basic_attributes series. - SDK monitoring series. Triggered on every request involving aggregated basic attributes estimations. Each point contains data on estimations performed. - InfluxDB: - Aggregated_basic_attributes series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Aggregated_basic_attributes series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Aggregated_body_descriptor series. - SDK monitoring series. Triggered on every request involving aggregated body descriptor estimations. Each point contains data on estimations performed. - InfluxDB: - Aggregated_body_descriptor series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - descriptor_version - descriptor version - Aggregated_body_descriptor series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "descriptor_version": "descriptor version", "execution_time": 0.123, } 
- Aggregated_face_descriptor series. - SDK monitoring series. Triggered on every request involving aggregated face descriptor estimations. Each point contains data on estimations performed. - InfluxDB: - Aggregated_face_descriptor series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - descriptor_version - descriptor version - Aggregated_face_descriptor series fields¶ - fields - description - execution_time - estimation time in seconds - face_descriptor_score - face descriptor score - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "descriptor_version": "descriptor version", "execution_time": 0.123, } 
- Basic_attributes series. - SDK monitoring series. Triggered on every request involving basic attributes estimations. Each point contains data on estimations performed. - InfluxDB: - Basic_attributes series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Basic_attributes series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Body_attributes series. - SDK monitoring series. Triggered on every request involving body attributes estimations. Each point contains data on estimations performed. - InfluxDB: - Body_attributes series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Body_attributes series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Body_descriptor series. - SDK monitoring series. Triggered on every request involving body descriptor estimations. Each point contains data on estimations performed. - InfluxDB: - Body_descriptor series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - descriptor_version - descriptor version - Body_descriptor series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "descriptor_version": "descriptor version", "execution_time": 0.123, } 
- Body_detection series. - SDK monitoring series. Triggered on every request involving body detection estimations. Each point contains data on estimations performed. - InfluxDB: - Body_detection series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Body_detection series fields¶ - fields - description - execution_time - estimation time in seconds - body_detection_height - body detection height - image_height - image height - body_detection_width - body detection width - image_width - image width - detection_count - detection count - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, "body_detection_height": 0, "image_height": 0, "body_detection_width": 0, "image_width": 0, "detection_count": 0, } 
- Body_redetection series. - SDK monitoring series. Triggered on every request involving body redetection estimations. Each point contains data on estimations performed. - InfluxDB: - Body_redetection series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Body_redetection series fields¶ - fields - description - execution_time - estimation time in seconds - body_detection_height - body detection height - image_height - image height - body_detection_width - body detection width - image_width - image width - detection_count - detection count - bbox_width - bbox width - bbox_height - bbox height - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, "body_detection_height": 0, "image_height": 0, "body_detection_width": 0, "image_width": 0, "detection_count": 0, "bbox_width": 0, "bbox_height": 0, } 
- Body_warp series. - SDK monitoring series. Triggered on every request involving body warp estimations. Each point contains data on estimations performed. - InfluxDB: - Body_warp series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Body_warp series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Deepfake series. - SDK monitoring series. Triggered on every request involving deepfake estimations. Each point contains data on estimations performed. - InfluxDB: - Deepfake series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - mode - mode - Deepfake series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "mode": "mode", "execution_time": 0.123, } 
- Dynamic_range series. - SDK monitoring series. Triggered on every request involving dynamic range estimations. Each point contains data on estimations performed. - InfluxDB: - Dynamic_range series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Dynamic_range series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Emotions series. - SDK monitoring series. Triggered on every request involving emotions estimations. Each point contains data on estimations performed. - InfluxDB: - Emotions series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Emotions series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Eyebrow_expression series. - SDK monitoring series. Triggered on every request involving eyebrow expression estimations. Each point contains data on estimations performed. - InfluxDB: - Eyebrow_expression series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Eyebrow_expression series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Eyes series. - SDK monitoring series. Triggered on every request involving eyes estimations. Each point contains data on estimations performed. - InfluxDB: - Eyes series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Eyes series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Face_descriptor series. - SDK monitoring series. Triggered on every request involving face descriptor estimations. Each point contains data on estimations performed. - InfluxDB: - Face_descriptor series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - descriptor_version - descriptor version - Face_descriptor series fields¶ - fields - description - execution_time - estimation time in seconds - face_descriptor_score - face descriptor score - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "descriptor_version": "descriptor version", "execution_time": 0.123, } 
- Face_detection series. - SDK monitoring series. Triggered on every request involving face detection estimations. Each point contains data on estimations performed. - InfluxDB: - Face_detection series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Face_detection series fields¶ - fields - description - execution_time - estimation time in seconds - face_detection_height - face detection height - image_height - image height - face_detection_width - face detection width - image_width - image width - detection_count - detection count - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, "face_detection_height": 0, "image_height": 0, "face_detection_width": 0, "image_width": 0, "detection_count": 0, } 
- Face_detection_background series. - SDK monitoring series. Triggered on every request involving face detection background estimations. Each point contains data on estimations performed. - InfluxDB: - Face_detection_background series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Face_detection_background series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Face_natural_light series. - SDK monitoring series. Triggered on every request involving face natural light estimations. Each point contains data on estimations performed. - InfluxDB: - Face_natural_light series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Face_natural_light series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Face_redetection series. - SDK monitoring series. Triggered on every request involving face redetection estimations. Each point contains data on estimations performed. - InfluxDB: - Face_redetection series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Face_redetection series fields¶ - fields - description - execution_time - estimation time in seconds - face_detection_height - face detection height - image_height - image height - face_detection_width - face detection width - image_width - image width - detection_count - detection count - bbox_width - bbox width - bbox_height - bbox height - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, "face_detection_height": 0, "image_height": 0, "face_detection_width": 0, "image_width": 0, "detection_count": 0, "bbox_width": 0, "bbox_height": 0, } 
- Face_warp series. - SDK monitoring series. Triggered on every request involving face warp estimations. Each point contains data on estimations performed. - InfluxDB: - Face_warp series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Face_warp series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Face_warp_quality series. - SDK monitoring series. Triggered on every request involving face warp quality estimations. Each point contains data on estimations performed. - InfluxDB: - Face_warp_quality series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Face_warp_quality series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Fisheye series. - SDK monitoring series. Triggered on every request involving fisheye estimations. Each point contains data on estimations performed. - InfluxDB: - Fisheye series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Fisheye series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Gaze_direction series. - SDK monitoring series. Triggered on every request involving gaze direction estimations. Each point contains data on estimations performed. - InfluxDB: - Gaze_direction series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Gaze_direction series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Glasses series. - SDK monitoring series. Triggered on every request involving glasses estimations. Each point contains data on estimations performed. - InfluxDB: - Glasses series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Glasses series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Head_pose series. - SDK monitoring series. Triggered on every request involving head pose estimations. Each point contains data on estimations performed. - InfluxDB: - Head_pose series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Head_pose series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Headwear series. - SDK monitoring series. Triggered on every request involving headwear estimations. Each point contains data on estimations performed. - InfluxDB: - Headwear series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Headwear series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Human_detection series. - SDK monitoring series. Triggered on every request involving human detection estimations. Each point contains data on estimations performed. - InfluxDB: - Human_detection series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Human_detection series fields¶ - fields - description - execution_time - estimation time in seconds - face_detection_height - face detection height - face_detection_width - face detection width - body_detection_height - body detection height - body_detection_width - body detection width - image_height - image height - image_width - image width - detection_count - detection count - face_detection_count - face detection count - body_detection_count - body detection count - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, "face_detection_height": 0, "face_detection_width": 0, "body_detection_height": 0, "body_detection_width": 0, "image_height": 0, "image_width": 0, "detection_count": 0, "face_detection_count": 0, "body_detection_count": 0, } 
- Image_orientation series. - SDK monitoring series. Triggered on every request involving image orientation estimations. Each point contains data on estimations performed. - InfluxDB: - Image_orientation series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Image_orientation series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Image_color_type series. - SDK monitoring series. Triggered on every request involving image color type estimations. Each point contains data on estimations performed. - InfluxDB: - Image_color_type series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Image_color_type series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Landmarks5 series. - SDK monitoring series. Triggered on every request involving landmarks5 estimations. Each point contains data on estimations performed. - InfluxDB: - Landmarks5 series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Landmarks5 series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Landmarks68 series. - SDK monitoring series. Triggered on every request involving landmarks68 estimations. Each point contains data on estimations performed. - InfluxDB: - Landmarks68 series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Landmarks68 series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- LivenessV1 series. - SDK monitoring series. Triggered on every request involving livenessv1 estimations. Each point contains data on estimations performed. - InfluxDB: - LivenessV1 series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - LivenessV1 series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Mask series. - SDK monitoring series. Triggered on every request involving mask estimations. Each point contains data on estimations performed. - InfluxDB: - Mask series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Mask series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Mouth_state series. - SDK monitoring series. Triggered on every request involving mouth state estimations. Each point contains data on estimations performed. - InfluxDB: - Mouth_state series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Mouth_state series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- People_count series. - SDK monitoring series. Triggered on every request involving people count estimations. Each point contains data on estimations performed. - InfluxDB: - People_count series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - People_count series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Portrait_style series. - SDK monitoring series. Triggered on every request involving portrait style estimations. Each point contains data on estimations performed. - InfluxDB: - Portrait_style series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Portrait_style series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
- Red_eyes series. - SDK monitoring series. Triggered on every request involving red eyes estimations. Each point contains data on estimations performed. - InfluxDB: - Red_eyes series tags¶ - tag name - description - service - always “luna-remote-sdk” - batch_size - batch size for estimations - Red_eyes series fields¶ - fields - description - execution_time - estimation time in seconds - ClickHouse JSON `data` field Example: - { "service": "luna-remote-sdk", "batch_size": 10, "execution_time": 0.123, } 
Database¶
You can refer to documentation for influx database and clickhouse database to compare the databases and choose what benefit your needs more. Note that clickhouse might be the better choice for aggregation You can setup your database credentials in configuration file in section “monitoring”.
Plugins¶
You can implement your own plugin for sending monitoring data. See plugins
Module request monitoring plugin example
- class luna_remote_sdk.crutches_on_wheels.cow.plugins.plugin_examples.request_monitoring_plugin_example.BaseRequestMonitoringPlugin(app)[source]¶
- Base class for requests monitoring. 
- class luna_remote_sdk.crutches_on_wheels.cow.plugins.plugin_examples.request_monitoring_plugin_example.RequestMonitoringPlugin(app)[source]¶
- Example plugin sends a request data for monitoring to third-party source. Only one instance of this class exist during the program execution.