Giter Site home page Giter Site logo

metrics_monitoring's Introduction

Build container with: docker build -t monitor .

Run container with: docker run -d -p 3000:3000 -p 8083:8083 -p 8086:8086 -v /tmp/influxdb:/data -v /tmp/grafana:/var/lib/grafana --name monitor monitor

port 3000 - Grafana port 8083 - InfluxDb admin port 8086 - InfluxDb queries

Login to Grafana with admin@admin

Grafana storage is already configured to local InfluxDb.

The most common element in Grafana dashboard is Graph panel and can be created with this guide: http://docs.grafana.org/reference/graph/

Whole grafana dashboard can be exported into json file and next it can imported from /var/lib/grafana/dashboards/ in another grafana instance. http://docs.grafana.org/reference/export_import/

Write queries to InfluxDb can be done like: curl -i -XPOST 'http://localhost:8086/write?db=test' --data-binary 'metrics,tag_name1=tag_value1,tag_name2=tag_value2 value=0.78'

Where: db=test is InfluxDb database setting - test DB is already created metrics is name of metrics (table name in SQL) tag_name1 and tag_name2 are names of tags (names of indexed columns in SQL) tag_value1 and tag_value2 are values of tags (values in indexed columns in SQL) value name of value (names of non indexed columns in SQL) 0.78 is value (values in non indexed columns in SQL)

https://docs.influxdata.com/influxdb/v0.12/write_protocols/write_syntax/

docker-compose.yml - for local testing with cadvisor

metrics_monitoring's People

Contributors

o1da avatar

Watchers

Petr Pridal avatar James Cloos avatar Martin Mikita avatar  avatar

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.