To start the container the first time launch:
docker run -d \
--name grafana \
-p 3003:9000 \
-p 3004:8083 \
-p 8086:8086 \
-p 22022:22 \
-p 8125:8125/udp \
advantageous/grafana:latest
You can replace latest with the desired version listed in changelog file.
To stop the container launch:
docker stop grafana
To start the container again launch:
docker start grafana
Host Container Service
3003 9000 grafana
8086 8086 influxdb
3004 8083 influxdb-admin
8125 8125 statsd
22022 22 sshd
ssh root@localhost -p 22022
Password: root
Username: root
Password: root
Data Sources from left side menu, then click on Add data sourcename for the source and flag it as DefaultInfluxDB as typedirect as accessAdd without altering other fieldsUrl: http://localhost:8086
Database: datasource
User: datasource
Password: datasource
Now you are ready to add your first dashboard and launch some query on database.
Username: root
Password: root
Port: 8086
influx to open InfluxDB Shell (CLI)docker build -t advantageous/grafana:v1 .
docker build -t advantageous/grafana:latest .
docker push advantageous/grafana
{
"container": {
"type": "DOCKER",
"docker": {
"image": "advantageous/grafana:v1",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 9000,
"hostPort": 12100,
"servicePort": 12100,
"protocol": "tcp"
},
{
"containerPort": 8086,
"hostPort": 12101,
"servicePort": 12101,
"protocol": "tcp"
},
{
"containerPort": 8083,
"hostPort": 12102,
"servicePort": 12102,
"protocol": "tcp"
},
{
"containerPort": 8125,
"hostPort": 12103,
"servicePort": 12103,
"protocol": "udp"
}
]
}
},
"id": "grafana",
"instances": 1,
"mem": 1024,
"portDefinitions": [
{
"name" : "grafana",
"port": 0,
"protocol": "tcp"
},
{
"name" : "influx-db",
"port": 0,
"protocol": "tcp"
},
{
"name" : "influx-admin",
"port": 0,
"protocol": "tcp"
},
{
"name" : "statsd",
"port": 0,
"protocol": "udp"
}
],
"upgradeStrategy": {
"minimumHealthCapacity": 0
},
"labels":{
"HAPROXY_GROUP":"external",
"HAPROXY_1_GROUP":"external",
"HAPROXY_2_GROUP":"external"
}
}
Content type
Unrecognized
Digest
Size
292 MB
Last updated
about 10 years ago
docker pull advantageous/grafana