Coder Social home page Coder Social logo

dmonitor's People

Contributors

bradleya avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

dmonitor's Issues

Prometheus notes for raspberry pi

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

grafana notes

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

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.