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.1.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.1-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.1.tar.gz.

File metadata

File hashes

Hashes for vsp-model-insight-azuretable-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ce937597b172ce3aa11d2e2f0869d9b5983f7f204a49800bf9cf27c2a62daee0
MD5 861b2064a287d2113a5470deaf77f186
BLAKE2b-256 61944c8f0eb74b0e1f5ff58c21e741b9f73361e84399f4b2af86c826474c69a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vsp_model_insight_azuretable-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 80e006d2ceb952c3ad9c50b54b2d8b6b3d4f7ee30bfd44f765e54d47d5189934
MD5 40e875d84c1634bf1036c19ab7411721
BLAKE2b-256 dd9e68581d70c00dd2f5c96ae58f0ec89b125721da84c8f7255cf87c6632e207

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