Coder Social home page Coder Social logo

Comments (4)

yinsimei avatar yinsimei commented on August 19, 2024

Hi, I also notice that you've added the support for 'table' in a previous commit but it seems that my queries are always executed via "getTimeseriesResults" and never fall into "getTableResult".

I guess there may be sth that I miss to make it work properly?

from mongodb-grafana.

JamesOsgood avatar JamesOsgood commented on August 19, 2024

from mongodb-grafana.

yinsimei avatar yinsimei commented on August 19, 2024

Thanks a lot for your reply. I tried to choose 'table' for the query drop down and use 'series' for the graph.

The graph I get shows only the last result. Do I still miss something here?
image

Here is my query:
db.analytic_events.aggregate([
{"$match": {
"event_time": { "$gte": "$from", "$lte": "$to" },
"event_type": "CampBakingStats_1.0"
}},
{"$group": {
"_id": { "changelist" : "$custom_payload.codeCL" },
"campBakingTotalDuration" : {"$sum": "$custom_payload.campBakingTotalDuration" },
"max_event_time": { "$max": "$event_time" }
}},
{"$project": {
"name" : "$_id.changelist",
"value" : "$campBakingTotalDuration",
"ts" : "$max_event_time",
"_id": 0
}},
{"$sort":
{ "ts": 1 }
}
])

What I'm trying to do is to draw campBakingTotalDuration trend by its change list number.

from mongodb-grafana.

yinsimei avatar yinsimei commented on August 19, 2024

Hi, it turns out to be our server plugin version is not updated.

The problem is fixed now. Thanks.

from mongodb-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.