Skip to main content

Visionaire4 maintenance tools suite

Project description

VISIONAIRE4

A suite of tools used for Visionaire4 maintenance.
Supported function subcommand:

  • report: Generate Visionaire4 and FRemisN status report.
  • export: Export metrics and edge cases data from current machine to files.
  • import: Import metrics and edge cases data from the exported files to current machine.

Installation

Install it directly using pip:

$ pip install visionaire4 --upgrade

How to Use

Export

Metrics

Before running export metrics make sure to have prometheus server to be running.
Export monitoring metrics data by running:

$ visionaire4 export metrics

This command will pull metrics data from prometheus server running in container named visionaire4.
You can configure the container name where the prometheus server is running with:

$ visionaire4 export metrics --prom-name <container name>

This will export the file to the default directory of ~/nodeflux/export.
You can configure where the exported file output directory with:

$ visionaire4 export metrics --out-dir <output directory>

Edge Case

Before running export edge case data make sure to have visionaire4 to be running.
Export edge case data by running:

$ visionaire4 export edge

This command will pull edge case data from visionaire4 container running in container named visionaire4.
You can configure the container name where the prometheus server is running with:

$ visionaire4 export edge --v4-name <container name>

Import

Metrics

Import the exported metrics data to current machine by running:

$ visionaire4 import metrics -f <path to exported file>

This will spawn a prometheus and grafana server and you can view the grafana dashboards at http://localhost:3000 with username admin and password admin.

All the required configs to run the prometheus and grafana server will be generated to the default directory of ~/nodeflux/import.
You can configure the config directory with:

$ visionaire4 import metrics -f <path to exported file> --cfg-dir <config directory>

When you finished viewing the metrics data, you can shutdown the monitoring server by running:

$ visionaire4 import metrics --cfg-dir <config directory> --down

Edge Case

Import the exported edge case data to current machine by running:

$ visionaire4 import edge -f <path to exported file>

This will extract edge case data and separate image data from the label into default config directory ~/nodeflux/import.
You can configure the config directory with:

$ visionaire4 import edge -f <path to exported file> --cfg-dir <config directory>

By default, the data will be dumped as v4 original annotation structure. Optionally, output format can be changed to other common dataset format, i.e. coco (currently only support coco), as:

$ visionaire4 import edge -f <path to exported file> --cfg-dir <config directory> --out-fmt coco

Report

To generate status report for Visionaire4 and or FRemisN, run:

$ visionaire4 report

This will try to locate a running Visionaire4 and or FRemisN, check the system status, and generate a summary for it. If it can't find either Visionaire4 or FRemisN container instance it will throw an error, so make sure to have a valid running instance of either one of it.
If somehow you have the valid instance running and the tool can't find it, you can specify the container name using:

$ visionaire4 report --v4-name <visionaire4 container name> --fr-name <fremisn container name>

If you have a custom Visionaire4 address, specify it using:

$ visionaire4 report --v4-address <IP:PORT>

By default the report will save the last 1000 line of logs for each container, you specify it using:

$ visionaire4 report --tail <N>
# or
$ visionaire4 report -n <N>

By default the report will also plot the last 5 minutes (300 seconds) of useful metrics from prometheus server, you can specify the time range using:

$ visionaire4 report --range <SECONDS>
# or
$ visionaire4 report -r <SECONDS>

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

visionaire4-0.1.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

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

visionaire4-0.1.0-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file visionaire4-0.1.0.tar.gz.

File metadata

  • Download URL: visionaire4-0.1.0.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for visionaire4-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f6d4d2c29994c2267de04ae8c57b67ed8b658eae8c08175c2547fe85ff838063
MD5 0d8260e42ea51c0dc5fdbaa53aee635b
BLAKE2b-256 c57a19490e7c2d6e0fa273aab7b37633dc5ec4f3ceb74664c1ee067ed0ac5596

See more details on using hashes here.

File details

Details for the file visionaire4-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: visionaire4-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for visionaire4-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08f76024de69506348ecc73ea1d5016be70c325ff0a620ef302391fea87d7ed3
MD5 f5471959b5d061646f4e1fcc8d653e3d
BLAKE2b-256 0781021323ed10e1ca3d3aeeea5ac82b1ee0e46531fa5beebf97d776dba9b52e

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