# Metenox monitor

Extension of alliance auth metenox application focused on providing data of metenox content over time for grafana

To be used with `metenox` installed only.

## Installation

Add `"metenox.monitor"` in your `INSTALLED_APPS`

Add this task at the end of your `local.py` file:
```py
CELERYBEAT_SCHEDULE['metenox_monitor_capture'] = {
    'task': 'metenox.monitor.tasks.capture_all',
    'schedule': crontab(minute='0', hour='*/6'),
}
```

> The default value makes the monitoring run 4 times a day.
Depending on your install size you might want to lower the update rate.

Run migrations

## Set a corporation for monitoring

In your admin pannel add the holding corporations you want to record as `Holdings to capture`.

## Management commands

| Name | Description |
|------|--|
| `metenox_monitor_capture_all` | Run the capture command and all holding corporations set for capture |
