Giter Club home page Giter Club logo

flask-graphite's People

Contributors

ramnes avatar shapiy avatar shir0kamii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

flask-graphite's Issues

Endpoint path separator is not supported by Graphite web

First of all, thanks for implementing such a great tool!

Actual result

Flask graphite (source) normalizes slashes / in endpoint paths by converting them to pipe character |. For example:

stats.users.localhost.flask-graphite.data|users.size

Although such metrics are supported by Carbon, you have to manually escape the metric name in order to render the graph: stats.users.localhost.flask-graphite.data\|users.size. Unfortunately, this is not done by Graphite web, and we end up with "No data" screen for the metrics corresponding to hierarchical endpoint paths.

Note that Pipe character is considered a special symbol by Graphite. So this behaviour may be intentional.

&target=asPercent(Server{1,2}.memory.used,Server{1,3}.memory.total,0)|exclude("MISSING")

Expected result

Flask-graphite should generate metric names supported by Graphite web.

Environment

Graphite โ€“ 1.1.5
Flask-graphite โ€“ 0.6.0

Metrics a levels deeper

@app.route('/person'): # measure total call and duration
some validation check
database call # measure total call and duration

i do some validation checks and then execute a database call. Is it also possible to have a tree that shows the pt and count of the database call

Fix Travis CI

And be consistent with our other projects (stop using tox)

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.