Coder Social home page Coder Social logo

grafana-counter-panel's People

Contributors

castedmo avatar

Watchers

 avatar  avatar

Forkers

drbinzhao

grafana-counter-panel's Issues

max(<field>) are added together

Hi.

Awesome flipcounter and I cannot find anyone else who have done this.

My datasource is Elasticsearch, and my metric is max(transact). Transact is a field in elasticsearch. My problem is that, it seems like the count is adding every max(transact) together - not really what I would like. If I group by day, the counter only gets one max(transact) and thus showing the correct info, but obviously it does not move.

Request/response:

xhrStatus:"complete" request:Object method:"POST" url:"api/datasources/proxy/10/_msearch" data:"{"search_type":"query_then_fetch","ignore_unavailable":true,"index":["sybase_d2-2018.11.06"],"max_concurrent_shard_requests":"512"} {"size":0,"query":{"bool":{"filter":[{"range":{"@timestamp":{"gte":"1541490691264","lte":"1541492491264","format":"epoch_millis"}}},{"query_string":{"analyze_wildcard":true,"query":"event:\"Auth\""}}]}},"aggs":{"2":{"date_histogram":{"interval":"1s","field":"@timestamp","min_doc_count":0,"extended_bounds":{"min":"1541490691264","max":"1541492491264"},"format":"epoch_millis"},"aggs":{"1":{"max":{"field":"transact"}}}}}} " response:Object responses:Array[1] 0:Object took:5 timed_out:false _shards:Object total:5 successful:5 skipped:0 failed:0 hits:Object total:6000 max_score:0 hits:Array[0] aggregations:Object 2:Object buckets:Array[1801] 0:Object 1:Object value:null key_as_string:"1541490691000" key:1541490691000 doc_count:0 1:Object 1:Object value:2286989958 key_as_string:"1541490692000" key:1541490692000 doc_count:6 2:Object 1:Object value:2286989967 key_as_string:"1541490693000" key:1541490693000 doc_count:7 3:Object 1:Object value:2286989970 key_as_string:"1541490694000" key:1541490694000 doc_count:3

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.