An open API service indexing awesome lists of open source software.

https://github.com/dbrgn/timeseries

A docker based time series dashboard (InfluxDB + Grafana).
https://github.com/dbrgn/timeseries

Last synced: 5 months ago
JSON representation

A docker based time series dashboard (InfluxDB + Grafana).

Awesome Lists containing this project

README

          

# Timeseries

A docker based time series dashboard (InfluxDB + Grafana).

## Usage

Initialize containers:

$ docker-compose build
$ docker-compose up -d

### Set up InfluxDB

Create admin user:

$ curl -v -G http://localhost:8086/query \
--data-urlencode "q=CREATE USER WITH PASSWORD '' WITH ALL PRIVILEGES"

Create a database:

$ curl -v -G -u : http://localhost:8086/query \
--data-urlencode "q=CREATE DATABASE temperatures"

Write some data:

$ curl -v -X POST -u : http://localhost:8086/write?db=temperatures \
--data-binary 'degrees,sensor=schlafzimmer value=23.875'
$ curl -v -X POST -u : http://localhost:8086/write?db=temperatures \
--data-binary 'degrees,sensor=schlafzimmer value=24'

If you wish, query data:

$ curl -v -G -u : http://localhost:8086/query?db=temperatures&pretty=true \
--data-urlencode 'q=SELECT value FROM degree' --data-urlencode 'pretty=true'