DEPRECATED: Please use google/cadvisor instead
10K+
Requires docker version > 1.2.0
docker run -d \
-v /var/lib/docker:/var/lib/docker:r \
-v /sys:/sys:r \
--link influxdb:influxdb \
-e DB_NAME=nodemetrics \
-e DB_USER=root \
-e DB_PASS=root \
-e DATA_CLEAN_SINCE 1w
tutum/node-metrics
Arguments
DB_NAME name of the influx database, "nodemetrics" by default
DB_USER user of influxdb, "root" by default
DB_PASS pass of influxdb, "INFLUXDB_ENV_INFLUXDB_INIT_PWD" if specified, "root" by default
DATA_CLEAN_SINCE clean old metrics since "1w"(default: 1 week) ago. Please modify crontab.conf accordingly if you change this value
INFLUXDB_ENV_INFLUXDB_INIT_PWD Inherited variable from influxdb, changing default password of influxdb
INFLUXDB DATA SAMPLE
[
{
"name": "stats",
"columns": [
"disksize",
"diskused",
"diskfree",
"diskpct",
"memsize",
"memused",
"memfree",
"swapsize",
"swapused",
"swapfree",
"cpuusage",
"rxbytes",
"txbytes"
],
"points": [
37929,
6411,
29569,
18,
2001,
899,
1102,
2047,
0,
2047,
3.3,
25253235,
243566
]
}
]
In order to write metrics to local influxdb container, you can start influxdb like this:
docker run -d \
-p 8084:8084 \
--name influxdb \
-e PRE_CREATE_DB="cadvisor; nodemetrics" \
-e SSL_SUPPORT=true \
tutum/influxdb:latest
The downsampled data is store in stats.1m, stats.5m, stats.30m, stats.2h, stats.1d
Content type
Image
Digest
sha256:1b4bfef6e…
Size
97.1 MB
Last updated
almost 11 years ago
docker pull tutum/node-metrics