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.0.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.0-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for vsp-model-insight-azuretable-0.1.0.tar.gz
Algorithm Hash digest
SHA256 541aa6f8b83e2c24f621682200b773809c0bc37a2f1a9c190e9c3c59803dfc38
MD5 3db4ae5a22e3391fa5abdfe06f727320
BLAKE2b-256 f6532b130dca2429b2e682b5ff3b437a6717a7f1d0409d38cec974acad354e6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vsp_model_insight_azuretable-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ef5a07551a9197aed017cec0acdf5a7573fd0888e8a0c981d1c83bf4a894fb87
MD5 2720e5017efbb6cd4062a4bb305b019e
BLAKE2b-256 95250e1c27ff0571223d5030f663de8633b2a1824bb97407b881b21c4b80c45b

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