Skip to main content

Model Performance Metrics Monitor Exporter

Project description

Installation

pip install vsp-model-insight-azuretable

Prerequisites

  • Create an VSP Model Monitor resource and get the connection string, more information can be found in the official docs.

  • Place your connection string directly into your code.

Usage

Log

The Model Performance Log Handler allows you to export Python logs to VSP.

This example shows how to send a warning level log to Azure Monitor.

import logging

from vsp_model_insight.azuretable import ModelPerformanceLogHandler

logging.basicConfig(level=logging.DEBUG)
rootlogger = logging.getLogger()
handler = ModelPerformanceLogHandler(connection_string='****')
rootlogger.addHandler(handler)

properties = {'model_signature': 'demo','model_performance': {'key_1': 'value_1', 'key_2': 'value_2'}}
logging.info(f"{datetime.now()}",extra=properties)

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vsp-model-insight-azuretable-0.1.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vsp_model_insight_azuretable-0.1.2-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file vsp-model-insight-azuretable-0.1.2.tar.gz.

File metadata

File hashes

Hashes for vsp-model-insight-azuretable-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d3ce3d0d2b0e71faf01e89d25f4e427f3420201ccddd233f42966856b2f05010
MD5 ee63455ec49434dd2b8cd3be0dfa5d3c
BLAKE2b-256 ab23c530a2c1f0cb0f53e4d9b908d1a26aa67de235e3250dac4263403f15ae6e

See more details on using hashes here.

File details

Details for the file vsp_model_insight_azuretable-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for vsp_model_insight_azuretable-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 576d355ff4ee9edfaf72808af229dc179f3b0c1c1b6d9700cf5ab428841518f4
MD5 7098008d0c9755f8fb6a6d5e5fdd577f
BLAKE2b-256 701ecdec13ae7a73d1a4e5f6b629a536d0d92b732e48c2809be0a63955dc4bc2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page