bradleya / dmonitor Goto Github PK
View Code? Open in Web Editor NEWdocker stats script to list containers by name
License: MIT License
docker stats script to list containers by name
License: MIT License
https://blog.alexellis.io/prometheus-nodeexporter-rpi/
sudo ufw allow from 192.168.1.0/24 to any port 9090
sudo ufw allow from 192.168.1.0/24 to any port 9100
sudo ufw status
mkdir Prometheus
cd Prometheus
curl -SL https://github.com/prometheus/node_exporter/releases/download/v0.14.0/node_exporter-0.14.0.linux-armv7.tar.gz > node_exporter.tar.gz && tar -xvf node_exporter.tar.gz -C /usr/local/bin/ --strip-components=1
mv /usr/local/bin/LICENSE .
mv /usr/local/bin/NOTICE .
crontab -e
@reboot /usr/local/bin/node_exporter >> /usr/local/data/us-tx-cluster-1/log/`hostname -f`-crontab 2>&1
sudo reboot
cd /usr/local/data/us-tx-cluster-1/log
tail -f `hostname -f`-crontab
unset DOCKER_CONTENT_TRUST
docker create --name prom_empty prom/prometheus
docker cp prom_empty:/etc/prometheus/prometheus.yml ./prometheus.yml
vi ./prometheus.yml
# - job_name: 'two-rpi3b.cptx86.com'
# static_configs:
# - targets: ['192.168.1.102:9100']
- job_name: 'four-rpi3b.cptx86.com'
static_configs:
- targets: ['192.168.1.104:9100']
- job_name: 'five-rpi3b.cptx86.com'
static_configs:
- targets: ['192.168.1.105:9100']
- job_name: 'six-rpi3b.cptx86.com'
static_configs:
- targets: ['192.168.1.106:9100']
vi Dockerfile
FROM prom/prometheus
COPY ./prometheus.yml /etc/prometheus/prometheus.yml
docker build -t prometheus/cluster-local .
docker run -p 9090:9090 --restart=always --name prometheus-rpi -d prometheus/cluster-local
DEBUG:
docker update --restart=no prometheus-rpi
docker container rm prometheus-rpi
docker run -p 9090:9090 --restart=always --name prometheus-rpi -d prometheus/cluster-local
vi prometheus.yml
unset DOCKER_CONTENT_TRUST
docker build -t prometheus/cluster-local .
docker run -p 9090:9090 --restart=always --name prometheus-rpi -d prometheus/cluster-local
sudo ufw allow from 192.168.1.0/24 to any port 30000
docker run -d -p 30000:3000 --restart=always --name=grafana grafana/grafana
http://192.168.1.203:30000/login
admin/admin
https://grafana.com/dashboards
sudo ufw allow from 192.168.1.0/24 to any port 9093
setup data source
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.