Comments (5)
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.
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.
seems to just return a single point.I think for constantLine we can use flot grid markings instead.
from grafana.
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.
Hope this helps.
from grafana.
👍 awesome feature ! :)
from grafana.
Related Issues (20)
- In the timeseries, I see wrong date when I hover over the values HOT 2
- The GPG public key for the Grafana APT Repository cannot be downloaded HOT 4
- Explore: Unify usage of baseQuery for BackendSrv
- DashboardScene: Migration - wrong breadcrumb in `viewPanel` when going from `{...}> {dashboard} > View panel > Edit panel` HOT 1
- Explore: Incorrect copy URL label
- DashboardScene: Runtime error `Could not find SceneQueryRunner for panel` in a specific dashboard
- I18n: Add Crowdin Sync for Enterprise repo
- Dashboards: Using `t v` shortcut breaks url
- Dashboard Scene: Improve Save/Discard Buttons interactions
- Prometheus panel: if changing the range changes the value too much, then grafana freezes
- Alerting: Silence preview only updates when you add additional label matchers
- Explore: Delete query template
- Explore: Show user who created the query template
- Dashboard data source: Library panel is incorrectly shown in the query editor
- Show compatible versions for each component in the Saga portal HOT 1
- <PanelRenderer/> will always autoscroll to bottom on re-render
- Dashboard: The unwrap operation not working when querying Loki logs HOT 1
- Alerting: Mute Timings Prevent OpsGiene Resolution and Auto-Close
- Dashboards: Label exclusion not working in Alert List panel or Alerts Rules
- Feature Request: Configurable Per-Datasource Timeout in Grafana
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafana.