Skip to main content

Model Performance Metrics Monitor Exporter

Project description

Installation

pip install vsp-model-insight-influxdb

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 datetime import datetime
import time
import random

from vsp_model_insight_influxdb.influxdb import ModelPerformanceLogHandler

logging.basicConfig(level=logging.DEBUG)
rootlogger = logging.getLogger()
handler = ModelPerformanceLogHandler(application_id="co",
    bucket='mybucker',org='myorg',token="*****",url="http://localhost:8086")
rootlogger.addHandler(handler)

properties = {'model_signature': 'corrosion','model_performance': {'drt': 0.9, 'mat': 0.1}}
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-influxdb-0.1.0.tar.gz (5.6 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_influxdb-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-influxdb-0.1.0.tar.gz.

File metadata

File hashes

Hashes for vsp-model-insight-influxdb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 abb706f8a66b05472ca9e70f8dfd41fd8426c8ef70c567339727aec06a6319f8
MD5 b915d29e35f2938fec21394ab2eb0617
BLAKE2b-256 1f812653c766de76ea312951495c4fbc9121eb7833a2dada377d98c5f44a26ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vsp_model_insight_influxdb-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 31bf3c864caa618bfdc02ce5a27a73151aa0f11284666bb21aba0018123b10dc
MD5 eb52c4647d6d9c747a56fc898fac3502
BLAKE2b-256 4b5a08dc7181b90b6f0d4b89d86615759528dad7c509200e2d3470d1be2c0ee2

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