Giter VIP home page Giter VIP logo

Comments (5)

torkelo avatar torkelo commented on May 8, 2024

This is due to a bug in graphite when using constantLine and json format (graphite-project/graphite-web#375), might be fixed next graphite release. I will try to find a substitute solution.

from grafana.

felixbarny avatar felixbarny commented on May 8, 2024

I don't get an HTTP Error, but Grafana does not display the Line even though there is a entry in the legend. The JSON response from Graphite is [{"target": "100", "datapoints": [[100, 1391608623]]}]

from grafana.

torkelo avatar torkelo commented on May 8, 2024

seems to just return a single point.I think for constantLine we can use flot grid markings instead.

from grafana.

avnivamsikrishna avatar avnivamsikrishna commented on May 8, 2024

a. There is a bug in current version of graphite regarding using the function constantLine/threshold in confluence with format of json

I needed the function ( y (t) = constant)(constant line and threshold in graphite) for displaying error and warning lines.

The following changes are to be made to the graphite in the graphite web as we need to type cast the timestamps in render/views.py to integers.
if format == 'json': timestamps = range(int(series.start), int(series.end), int(series.step))
b. I also had to change the constantLine function in functions.py in same folder (render
def constantLine(requestContext, value): #To make data consistent with the storage schema of the graphite so that we can use same json data for graphing start = int(timestamp( requestContext["startTime"] )/10)*10 end = int(timestamp( requestContext["endTime"])/10)*10 #step = (end -start -1)/1.0 step = 10 # similar to graphite val_tmp = [value] * int((end-start)/10) series = TimeSeries(str(value), start, end, step,val_tmp) return [series]
Once you do this: we could safely use the constantLine function for displaying errors and warnings.

screenshot from 2014-02-03 14_58_41

Hope this helps.

from grafana.

jippi avatar jippi commented on May 8, 2024

👍 awesome feature ! :)

from grafana.

Related Issues (20)

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.