Skip to main content

A Django application to collect monitoring data samples through HTTP or SNMP GET interface.

Project description

Travis (.com)


Collector is a Django application to collect monitoring data samples through HTTP or SNMP GET interface. Collected data might be then visualized using e.g. Grafana.


Collector uses InfluxDB time series database for storing monitoring data samples and django supported database for storing configuration and Redis broker.

Quick start

Assuming InfluxDB is properly configured (setting up authentication is recommended) and so is Redis broker just a few steps are required.

  1. Install watcheye-collector:

    $ pip install watcheye-collector
  2. Add collector application to INSTALLED_APPS setting.

  3. Integrate Celery with your django project (see Celery documentation for further reference).

  4. Add InfluxDB connection and Celery configuration in file:

    INFLUXDB_HOST = 'my_host'
    INFLUXDB_PASSWORD = 'secret'
        'snmp-scheduler': {
            'task': 'collector.tasks.snmp_scheduler',
            'schedule': crontab(minute='*')
    CELERY_RESULT_BACKEND = 'redis://my_broker_host/0'
    CELERY_BROKER_URL = 'redis://my_broker_host/1'
    # to use non-default values configure also:
    INFLUXDB_PORT = 1234
    INFLUXDB_DATABASE = 'my_database'
  5. To set InfluxDB instance up run:

    python setupinfluxdb --username <admin_username>
  6. To create the collector models run:

    python migrate
  7. Include the collector URLconf in your project

    path('collector/', include('collector.urls')),
  8. Start the development server and visit to create a collector configuration (the Admin application must also be enabled).

  9. Run Celery worker with:

    celery --beat --app <my_project> worker
  10. POST some samples:

    $ curl -i -X POST \
    -H "Content-Type: application/json" \
    -d '{"host":"test", "timestamp": 1500000000,
    "samples": [{"parameter":"CPU", "value": 10}]}' \

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for watcheye-collector, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size watcheye_collector-2.0.0-py3-none-any.whl (32.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size watcheye-collector-2.0.0.tar.gz (25.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page