Comments (3)
from mongodb-grafana.
Does "ts" variable exists in your collection? And there is values for the timerange that you have specified in grafana?
Also you should check if "ts" variable in mongodb is in date format.
from mongodb-grafana.
fyi, "ts" is the hard-coded time-series key. I was using "date_time" and trying to get several documents. Ended up rewriting the getTimeseriesResults function in mongodb-grafana/dist/server/mongodb-proxy.js to fix things.
function getTimeseriesResults(docs)
{
var results = {}
for ( var i = 0; i < docs.length; i++)
{
var doc = docs[i]
for (const [key, value] of Object.entries(doc))
{
if (key =='date_time')
continue
if (!(key in results))
{
results[key] = {'target': key, 'datapoints':[]}
}
else
{
results[key].datapoints.push([value, doc['date_time'].getTime()])
}
}
}
console.log(results)
return results
from mongodb-grafana.
Related Issues (20)
- Filtering values shows [Object object] HOT 2
- Comparison problems with Grafana variables
- {"message":"Cannot read property 'url' of undefined"} on localhost:3333
- Cannot get plugin to show up in grafana after installation HOT 4
- Does this plugin support a containerized setup? HOT 8
- Plugin disabled due to missing plugin signature HOT 1
- Is this project abandoned? HOT 16
- Multi-value variable HOT 1
- Has anyone managed to set the connection string to read only from a secondary node ?
- Why is there no .find()? HOT 1
- Error while installing Mongo Proxy npm install HOT 1
- Unsupported OP_QUERY command: aggregate. The client driver may require an upgrade. MongoDB 6.0.1 HOT 4
- Is $unwind supported?
- Request: Sign the plugin HOT 2
- Cannot add a datasource HOT 3
- Grafana Helm HOT 2
- Times out for mongodb://localhost:27017 HOT 1
- Regarding Bar Graph
- Migration from Angular to React
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 mongodb-grafana.