Public Repository

Last pushed: 9 months ago
Short Description
Grafana no Ubuntu 16.04 LTS 64 bits
Full Description

What is Grafana?

Grafana provides a powerful and elegant way to create, explore, and share dashboards and data with your team and the world.

Grafana is most commonly used for visualizing time series data for Internet infrastructure and application analytics but many use it in other domains including industrial sensors, home automation, weather, and process control.

Suport Graphite, Zabbix, Elasticsearch, Cloudwatch, Prometheus, InfluxDB & More

Grafana features pluggable panels and data sources allowing easy extensibility and a variety of panels, including fully featured graph panels with rich visualization options. There is built in support for many of the most popular time series data sources.

What's in this image?

  • S.O: Ubuntu 16.04 LTS 64 bits

  • Packages:

    • ca-certificates
    • apt-utils
    • net-tools
    • gosu
    • wget
    • libfontconfig
    • Grafana

View Dockerfile: https://github.com/aeciopires/docker/blob/master/ubuntu-grafana

More information install Grafana: http://docs.grafana.org/installation/debian/

How to access Grafana?

URL: http://localhost:3000 or http://ip-container:3000
login: admin
senha: admin

Grafana Details

  • Installs binary to /usr/sbin/grafana-server
  • Installs Init.d script to /etc/init.d/grafana-server
  • Creates default file (environment vars) to /etc/default/grafana-server
  • Installs configuration file to /etc/grafana/grafana.ini
  • The default configuration sets the log file at /var/log/grafana/grafana.log
  • The default configuration specifies an sqlite3 db at /var/lib/grafana/grafana.db

How to Use Image

1) Download image:

$ docker pull aeciopires/ubuntu-grafana:v3

2) Create a conteiner.

a) In background from image:

$ docker run -d -p 3000:3000 --name=grafana aeciopires/ubuntu-grafana:v3
$ docker logs <ID-conteiner>

or

b) Conteiner interactive from image:

$ docker run -i -t -p 3000:3000 --name=grafana aeciopires/ubuntu-grafana:v3 /bin/bash

Verify IP from the conteiner.

$ ifconfig

3) Access Grafana:

URL: http://localhost:3000 or http://ip-container:3000
login: admin
senha: admin

How to Commit modifications in the Image

After making the modifications to the image, follow the steps below.

1) Generate new image:

a) From conteiner

Get ID Conteiner in other terminal.

$ docker ps

Example ID conteiner: 6c6b8654543e

$ docker commit -m "Conteiner para o Grafana 4.4.x no Ubuntu 16.04" -a "Aecio Pires" 6c6b8654543e aeciopires/ubuntu-grafana:v3

Where:

-m “MESSAGE” do commit

-a “AUTHOR” do commit
6c6b8654543e => ID do conteiner

aeciopires/ubuntu-grafana:v3 => Repository with tag v3

b) Build image for Dockerfile:

git clone https://github.com/aeciopires/docker.git
cd docker/ubuntu-grafana/
docker build -t aeciopires/ubuntu-grafana:v3 .

3) List images.

$ docker images

4) Send image for https://hub.docker.com

$ docker login -u aeciopires

5) Push imagem

$ docker push aeciopires/ubuntu-grafana:v3

Reference:

https://docs.docker.com/engine/tutorials/dockerimages/
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04
https://docs.docker.com/engine/reference/commandline/commit/
https://www.digitalocean.com/community/tutorials/docker-explained-how-to-create-docker-containers-running-memcached

Docker Pull Command
Owner
aeciopires