Code Monkey home page Code Monkey logo

docker-statsd-influxdb-grafana's Introduction

Docker service with Telegraf (StatsD), InfluxDB and Grafana

👊 Battle-tested

CircleCI

Versions

Warning: UPGRADE FROM OLDER VERSIONS TO VERSION 3.0.0 IS NOT POSSIBLE, SEE CHANGELOG.MD

  • Main version: 3.0.0
  • InfluxDB: 2.1.1
  • Telegraf (StatsD): 1.21
  • Postgres: 14.2.0
  • Grafana: 8.4.4

Quick Start

First download and install the latest available version of Docker Compose https://docs.docker.com/compose/install/

In order to start the service the first time launch:

COMPOSE_PROFILES=grafana,telegraf docker-compose up -d

You can replace COMPOSE_PROFILES=grafana,telegraf with the desired profiles to launch, you can launch only InfluxDB (default with no profiles).

To stop the service launch:

COMPOSE_PROFILES=grafana,telegraf docker-compose down

Mapped Ports

Host		Container		Service

3003		3003			grafana
8086		8086		  influxdb
8125		8125			statsd

Grafana

Open http://localhost:3003

Username: root
Password: root

Data source on Grafana

InfluxDB data source is automatically provisioned with new Flux language support flag.

InfluxDB

Web Interface

Open http://localhost:8086

Username: admin
Password: admin123456
Port: 8086

Customizations

You can customize all settings in the attached config files, then you can stop and start the service in order to reload the new configurations.

docker-statsd-influxdb-grafana's People

Contributors

cire831 avatar fintis avatar hemna avatar jonascheng avatar karbuzov avatar krisgeus avatar lazyd3v avatar lisbakke avatar ollyw avatar samuelebistoletti avatar xtrmstep avatar zahiar avatar zferenczik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-statsd-influxdb-grafana's Issues

Grafana failing up

run_grafana
=> Starting Grafana ...
[FAIL] Starting Grafana Server: failed!

Telegraf and influx dockers keep restarting

Hi after running your setup script trough ssh on my synlogy nas

the dockers for influxdb and telegraf keep rebooting

Influx docker failes with failed to load config file: open /etc/influxdb2/config.yml: permission denied
telegraf give back

2023-06-04T20:08:44Z E! [telegraf] Error running agent: Error loading config file /etc/telegraf/telegraf.conf: open /etc/telegraf/telegraf.conf: permission denied

how can it be that the setup script runs fine and these 2 container do not have premision to get to. their configs

need restart

it will receive nothing when 23:59 clock until restart.

Need update

Can you please update this docker with the grafana 5.0?

Synology Docker Container won't start anything

Hey folks,

when I´m running this container on my Synology docker container I get frequently this error message.

What do I suppose to do, to get this working?

2020-05-29 14:08:45,270 INFO exited: telegraf (exit status 0; expected) 2020-05-29 14:08:53,768 INFO exited: grafana (exit status 1; not expected) 2020-05-29 14:08:54,772 INFO spawned: 'grafana' with pid 1841 2020-05-29 14:08:54,901 INFO reaped unknown pid 1854 2020-05-29 14:08:55,903 INFO success: grafana entered RUNNING state, process has stayed up for > than 1 s econds (startsecs)

[DOC] Database outside docker

More a documentation issue than anything, but I thought I'd share it over here.
I installed my docker following the provided instructions and all was fine. Then I upgraded the docker, and low and behold (and I should've realised this myself) the database was gone.

The instruction docker run are lacking the -v step:
-v /volume1//influxdb/:/var/lib/influxdb
This will use your local drive as database storage.

Since mr. Bistoletti kindly created the docker with a pre-installed database this option unfortunately doesn't work out of the box. It will stop the influx from loading.

The way I resolved this was to first start the newly created docker (so you only need to do this on first run) without the -v flag. Then copy the database to the local environment with the following command:
docker cp docker-statsd-influxdb-grafana:/var/lib/influxdb /volume1/<your local directory>/influxdb/

For others running into this issue, here are the commands I use to start my docker:

docker stop docker-statsd-influxdb-grafana
docker pull samuelebistoletti/docker-statsd-influxdb-grafana:latest
docker rm docker-statsd-influxdb-grafana
docker run --ulimit nofile=66000:66000 -d --name docker-statsd-influxdb-grafana \
  -p 3003:3003 -p 3004:8888 -p 8086:8086 -p 8125:8125/udp \
  -v /volume1/SmartHome/influxdb/:/var/lib/influxdb \
  --restart=unless-stopped samuelebistoletti/docker-statsd-influxdb-grafana:latest

How to add plugins?

I've tryed the following approach:

Connect to the docker container using docker exec with a bash shell

grafana-cli plugins install grafana-piechart-panel

And then restart the grafan service but the piechart is still not here?

InfluxDB web interface not protected

Although the guide says that the access to InfluxDB web interface is protected with password, the intefrace loads without any authentication.

User defined tags for metrics

Is there any configuration needed to get metrics with user defined tags in influxDB?
I'm sending stuff like this

prefix.metric.test:1|c|#foo:bar

and the measurement in influx contains time host metric_type value but no tags

chronograf-v1.db out of place

After starting the image chronograf-v1.db is located under /root.
It's expect to be under /var/lib/chronograf.

I'm trying to work out a clean persistency solution #16 , but this throws me off.

Image creation fails when creating database to influx

From docker hub log

`=> Creating database: data
�[91m �[0m�[91m �[0m�[91m%�[0m�[91m �[0m�[91mT�[0m�[91mo�[0m�[91mt�[0m�[91ma�[0m�[91ml�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m%�[0m�[91m �[0m�[91mR�[0m�[91me�[0m�[91mc�[0m�[91me�[0m�[91mi�[0m�[91mv�[0m�[91me�[0m�[91md�[0m�[91m �[0m�[91m%�[0m�[91m �[0m�[91mX�[0m�[91mf�[0m�[91me�[0m�[91mr�[0m�[91md�[0m�[91m �[0m�[91m �[0m�[91mA�[0m�[91mv�[0m�[91me�[0m�[91mr�[0m�[91ma�[0m�[91mg�[0m�[91me�[0m�[91m �[0m�[91mS�[0m�[91mp�[0m�[91me�[0m�[91me�[0m�[91md�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mT�[0m�[91mi�[0m�[91mm�[0m�[91me�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mT�[0m�[91mi�[0m�[91mm�[0m�[91me�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mT�[0m�[91mi�[0m�[91mm�[0m�[91me�[0m�[91m �[0m�[91m �[0m�[91mC�[0m�[91mu�[0m�[91mr�[0m�[91mr�[0m�[91me�[0m�[91mn�[0m�[91mt�[0m�[91m
�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mD�[0m�[91ml�[0m�[91mo�[0m�[91ma�[0m�[91md�[0m�[91m �[0m�[91m �[0m�[91mU�[0m�[91mp�[0m�[91ml�[0m�[91mo�[0m�[91ma�[0m�[91md�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mT�[0m�[91mo�[0m�[91mt�[0m�[91ma�[0m�[91ml�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mS�[0m�[91mp�[0m�[91me�[0m�[91mn�[0m�[91mt�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mL�[0m�[91me�[0m�[91mf�[0m�[91mt�[0m�[91m �[0m�[91m �[0m�[91mS�[0m�[91mp�[0m�[91me�[0m�[91me�[0m�[91md�[0m�[91m
�[0m�[91m
�[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m 0 0 0 0 --:--:-- --:--:-- --:--:-- 0�[0m�[91m[http] 2016/02/23 10:17:01 ::1 - root [23/Feb/2016:10:17:01 +0000] GET /query?p=%5BREDACTED%5D&q=CREATE+DATABASE+data&u=root HTTP/1.1 400 83 - curl/7.38.0 9402a324-da16-11e5-8006-000000000000 194.374µs
�[0m�[91m
�[0m�[91m1�[0m�[91m0�[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m8�[0m�[91m3�[0m�[91m �[0m�[91m �[0m�[91m1�[0m�[91m0�[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m8�[0m�[91m3�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m4�[0m�[91m2�[0m�[91m1�[0m�[91m9�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m �[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m �[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m �[0m�[91m �[0m�[91m4�[0m�[91m3�[0m�[91m6�[0m�[91m8�[0m�[91m
�[0m{"error":"error parsing query: found DATA, expected identifier at line 1, char 17"}
=> Creating User for database: data
�[91m �[0m�[91m �[0m�[91m%�[0m�[91m �[0m�[91mT�[0m�[91mo�[0m�[91mt�[0m�[91ma�[0m�[91ml�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m%�[0m�[91m �[0m�[91mR�[0m�[91me�[0m�[91mc�[0m�[91me�[0m�[91mi�[0m�[91mv�[0m�[91me�[0m�[91md�[0m�[91m �[0m�[91m%�[0m�[91m �[0m�[91mX�[0m�[91mf�[0m�[91me�[0m�[91mr�[0m�[91md�[0m�[91m �[0m�[91m �[0m�[91mA�[0m�[91mv�[0m�[91me�[0m�[91mr�[0m�[91ma�[0m�[91mg�[0m�[91me�[0m�[91m �[0m�[91mS�[0m�[91mp�[0m�[91me�[0m�[91me�[0m�[91md�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mT�[0m�[91mi�[0m�[91mm�[0m�[91me�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mT�[0m�[91mi�[0m�[91mm�[0m�[91me�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mT�[0m�[91mi�[0m�[91mm�[0m�[91me�[0m�[91m �[0m�[91m �[0m�[91mC�[0m�[91mu�[0m�[91mr�[0m�[91mr�[0m�[91me�[0m�[91mn�[0m�[91mt�[0m�[91m
�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mD�[0m�[91ml�[0m�[91mo�[0m�[91mad Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0�[0m{"error":"error parsing query: found DATA, expected identifier at line 1, char 13"}�[91m[http] 2016/02/23 10:17:01 ::1 - root [23/Feb/2016:10:17:01 +0000] GET /query?p=%5BREDACTED%5D&q=CREATE+USER+data+WITH+PASSWORD+%27data%27&u=root HTTP/1.1 400 83 - curl/7.38.0 940c8493-da16-11e5-8007-000000000000 116.354µs

100 83 100 83 0 0 3003 0 --:--:-- --:--:-- --:--:-- 3074
�[0m�[91m �[0m�[91m �[0m�[91m%�[0m�[91m �[0m�[91mT�[0m�[91mo�[0m�[91mt�[0m�[91ma�[0m�[91ml�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m%�[0m�[91m �[0m�[91mR�[0m�[91me�[0m�[91mc�[0m�[91me�[0m�[91mi�[0m�[91mv�[0m�[91me�[0m�[91md�[0m�[91m �[0m�[91m%�[0m�[91m �[0m�[91mX�[0m�[91mf�[0m�[91me�[0m�[91mr�[0m�[91md�[0m�[91m �[0m�[91m �[0m�[91mA�[0m�[91mv�[0m�[91me�[0m�[91mr�[0m�[91ma�[0m�[91mg�[0m�[91me�[0m�[91m �[0m�[91mS�[0m�[91mp�[0m�[91me�[0m�[91me�[0m�[91md�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mT�[0m�[91mi�[0m�[91mm�[0m�[91me�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mT�[0m�[91mi�[0m�[91mm�[0m�[91me�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mT�[0m�[91mi�[0m�[91mm�[0m�[91me�[0m�[91m �[0m�[91m �[0m�[91mC�[0m�[91mu�[0m�[91mr�[0m�[91mr�[0m�[91me�[0m�[91mn�[0m�[91mt�[0m�[91m
�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mD�[0m�[91ml�[0m�[91mo�[0m�[91ma�[0m�[91md�[0m�[91m �[0m�[91m �[0m�[91mU�[0m�[91mp�[0m�[91ml�[0m�[91mo�[0m�[91ma�[0m�[91md�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mT�[0m�[91mo�[0m�[91mt�[0m�[91ma�[0m�[91ml�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mS�[0m�[91mp�[0m�[91me�[0m�[91mn�[0m�[91mt�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91mL�[0m�[91me�[0m�[91mf�[0m�[91mt�[0m�[91m �[0m�[91m �[0m�[91mS�[0m�[91mp�[0m�[91me�[0m�[91me�[0m�[91md�[0m�[91m
�[0m�[91m
�[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m �[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m �[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m[http] 2016/02/23 10:17:01 ::1 - root [23/Feb/2016:10:17:01 +0000] GET /query?p=%5BREDACTED%5D&q=GRANT+ALL+ON+data+TO+data&u=root HTTP/1.1 400 83 - curl/7.38.0 94125e79-da16-11e5-8008-000000000000 84.019µs
�[0m�[91m
�[0m�[91m1�[0m�[91m0�[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m8�[0m�[91m3�[0m�[91m �[0m�[91m �[0m�[91m1�[0m�[91m0�[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m8�[0m�[91m3�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m3�[0m�[91m7�[0m�[91m6�[0m�[91m3�[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m �[0m�[91m0�[0m�[91m �[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m �[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m �[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m:�[0m�[91m-�[0m�[91m-�[0m�[91m �[0m�[91m �[0m�[91m3�[0m�[91m9�[0m�[91m5�[0m�[91m2�[0m�[91m
�[0m{"error":"error parsing query: found DATA, expected identifier at line 1, char 14"}`

errors on compose

WARNING: The INFLUXDB_VERSION variable is not set. Defaulting to a blank string.
WARNING: The TELEGRAF_VERSION variable is not set. Defaulting to a blank string.
WARNING: The POSTGRES_VERSION variable is not set. Defaulting to a blank string.
WARNING: The GRAFANA_VERSION variable is not set. Defaulting to a blank string.
ERROR: Couldn't find env file: /volume1/docker/influxdb/influxdb.env

How enabled influxdb graphite port 2003?

I am trying to generate a report from jmeter but I have paired this error.

ERROR o.a.j.v.b.g.TextGraphiteMetricsSender: Error writing to Graphite: Conexão recusada (Connection refused)

image

Not able to run container on raspbian wheezy

I was trying to run the newest version of your container under raspbian with the following command:

docker run -p 3003:3003 --name grafana samuelebistoletti/docker-statsd-influxdb-grafana

The only output i get is:

standard_init_linux.go:195: exec user process caused "exec format error"

I'm using raspbian jessie on a raspberry pi 2b (therefore armv8l-architecture) and i installed docker with the script from https://get.docker.com/. From what I've read this error message indicates a non-executable file where an executable should be. But my docker-skills are not sufficient enough to solve this by myself, so I'm leaving it up to you to find a solution.

UPDATE: I also tried running the docker-command in your quickstart-section but it had the same effect. And docker logs grafana shows me the same output as i get on stdout when running non-detached.

grafana.ini

Is the content of the grafana.ini file correct? By default mysql is used. Not postgress config is set.

Upgrade Influx & Grafana

Grafana 6.6 is outdated. Grafana 8 is out for some time now. Any plans to upgrade?
Same for Influx

deb file cleanup

The file /root/chronograf_1.5.0.1_amd64.deb is left inside the image, taking up 16MB.
Can it be removed?

update container docker

hello, as it would be to update this docker container, sorry for the question I am very new to docker.
I have portainer installed, I don't know if I can update the container from portainer or if I have to do it from the console, if you could tell me that I have to put it on the console or I wish to portainer.
Thank you very much, Victor.

grafana wrong port

On the docs you mention port 3003 for grafana, but the compose file mentions 3000.

Docker run with error

Hi

I found two issues:

  1. UnicodeEncodeError
    docker run -p 3003:9000 -p 3004:8083 -p 8086:8086 -p 22022:22 -p 8125:8125/udp test
    *** Killing all processes...
    Traceback (most recent call last):
    File "/sbin/my_init", line 346, in
    main(args)
    File "/sbin/my_init", line 265, in main
    export_envvars()
    File "/sbin/my_init", line 88, in export_envvars
    f.write(value)
    UnicodeEncodeError: 'ascii' codec can't encode characters in position 2-4: ordinal not in range(128)

This could be resolved by specifying -e LC_ALL=en_US.UTF-8

  1. After I start up the container, I encounter 2nd issue

root@8f7aee47f85e:/var/log# tail statsd.log
16 Nov 05:38:38 - [482] reading config file: config.js
16 Nov 05:38:38 - server is up INFO
16 Nov 05:38:48 - [influxdb] HTTP Error: 500
16 Nov 05:38:58 - [influxdb] HTTP Error: 500

root@8f7aee47f85e:/var/log# tail influxdb/influxd.log
2016/11/16 05:38:38 Sending anonymous usage statistics to m.influxdb.com
[run] 2016/11/16 05:38:38 Listening for signals
[httpd] 2016/11/16 05:38:48 127.0.0.1 - datasource [16/Nov/2016:05:38:48 +0000] POST /write?db=datasource&p=%5BREDACTED%5D&rp=autogen&u=datasource HTTP/1.1 500 48 - - f2668d50-abbe-11e6-8001-000000000000 190.072µs
[tsm1wal] 2016/11/16 05:38:48 tsm1 WAL starting with 10485760 segment size
[tsm1wal] 2016/11/16 05:38:48 tsm1 WAL writing to /var/lib/influxdb/wal/_internal/monitor/1
[shard] 2016/11/16 05:38:48 /var/lib/influxdb/data/_internal/monitor/1 database index loaded in 1.01µs
[httpd] 2016/11/16 05:38:58 127.0.0.1 - datasource [16/Nov/2016:05:38:58 +0000] POST /write?db=datasource&p=%5BREDACTED%5D&rp=autogen&u=datasource HTTP/1.1 500 48 - - f85a6287-abbe-11e6-8002-000000000000 133.464µs
[httpd] 2016/11/16 05:39:08 127.0.0.1 - datasource [16/Nov/2016:05:39:08 +0000] POST /write?db=datasource&p=%5BREDACTED%5D&rp=autogen&u=datasource HTTP/1.1 500 48 - - fe4f7906-abbe-11e6-8003-000000000000 195.778µs

I have no any idea for 2nd one, any advice?

Thanks,
Jonas

Grafana 4.1.1

Hi,

Any chance you can update your Dockerfile to publish an image with grafana 4.1.1 which contains alerting now as well? I tried to build based on your dockerfile but it seems to be dependent on folders on the host.

Thanks.

err msg

hi,

$ docker logs 5e46df5cb8779146d71f2571f5ef13684967a2c033b75b62b53fa68714f9fe24
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/01_run_mysql.sh...
=> Starting MySQL ...

  • Starting MySQL database server mysqld
    ...done.
  • Checking for tables which need an upgrade, are corrupt or were
    not closed cleanly.
    *** Running /etc/my_init.d/02_run_influxdb.sh...
    => Starting InfluxDB ...
    /etc/init.d/influxdb: line 157: ulimit: open files: cannot modify limit: Operation not permitted
    set open file limit to 65536 [ FAILED ]
    *** /etc/my_init.d/02_run_influxdb.sh failed with status 1

*** Killing all processes...

install plugin grafana

hello,

I want to install a plugin grafana in this container as it should?
example: grafana-piechart-panel
Regards, Victor.

Telegraf error message on startup

When running the container with the startup command from the README:

docker run -d \
  --name docker-statsd-influxdb-grafana \
  -p 3003:3003 \
  -p 3004:8083 \
  -p 8086:8086 \
  -p 22022:22 \
  -p 8125:8125/udp \
  samuelebistoletti/docker-statsd-influxdb-grafana:latest

I get this in the logs:

$ docker logs docker-statsd-influxdb-grafana
/usr/lib/python2.7/dist-packages/supervisor/options.py:297: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
  'Supervisord is running as root and it is searching '
2017-06-19 13:29:49,695 CRIT Supervisor running as root (no user in config file)
2017-06-19 13:29:49,695 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2017-06-19 13:29:49,705 INFO RPC interface 'supervisor' initialized
2017-06-19 13:29:49,705 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2017-06-19 13:29:49,706 INFO supervisord started with pid 1
2017-06-19 13:29:50,710 INFO spawned: 'sshd' with pid 7
2017-06-19 13:29:50,714 INFO spawned: 'mysql' with pid 8
2017-06-19 13:29:50,717 INFO spawned: 'influxdb' with pid 9
2017-06-19 13:29:50,726 INFO spawned: 'telegraf' with pid 10
2017-06-19 13:29:50,727 INFO spawned: 'grafana' with pid 12
2017-06-19 13:29:50,778 INFO exited: telegraf (exit status 0; not expected)
2017-06-19 13:29:50,799 INFO reaped unknown pid 47
2017-06-19 13:29:51,838 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-06-19 13:29:51,838 INFO success: mysql entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-06-19 13:29:51,839 INFO success: influxdb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-06-19 13:29:51,841 INFO spawned: 'telegraf' with pid 508
2017-06-19 13:29:51,842 INFO success: grafana entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-06-19 13:29:51,865 INFO exited: telegraf (exit status 0; not expected)
2017-06-19 13:29:53,873 INFO spawned: 'telegraf' with pid 537
2017-06-19 13:29:53,896 INFO exited: telegraf (exit status 0; not expected)
2017-06-19 13:29:56,846 INFO exited: influxdb (exit status 0; expected)
2017-06-19 13:29:56,865 INFO exited: mysql (exit status 0; expected)
2017-06-19 13:29:57,872 INFO spawned: 'telegraf' with pid 563
2017-06-19 13:29:57,929 INFO exited: telegraf (exit status 0; not expected)
2017-06-19 13:29:58,931 INFO gave up: telegraf entered FATAL state, too many start retries too quickly
2017-06-19 13:30:02,892 INFO exited: grafana (exit status 1; not expected)
2017-06-19 13:30:03,899 INFO spawned: 'grafana' with pid 595
2017-06-19 13:30:04,928 INFO success: grafana entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-06-19 13:30:04,942 INFO exited: grafana (exit status 0; expected)

It seems telegraf is not running: 2017-06-19 13:29:58,931 INFO gave up: telegraf entered FATAL state, too many start retries too quickly
grafana and influxdb seem to work as expected.

Is this normal bahaviour?

Influx 2.0

Any plans to release a docker image with influx 2.0 and updates to the other components?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.