Hacker News new | ask | show | jobs
by guanzo 2226 days ago
Zero experience with Grafana here.

I have a mongodb database with several collections. All collections share a set of fields: "createdAt", "channelId", "status", etc.

How easy would it be to dump all this data into Grafana, and then be able to slice and dice these collections by any combination of the shared fields.

Basically, I'm tired of writing mongo queries whenever I want to inspect my data. I want to point and click around a beautiful UI, with data visualizations and easy filtering/aggregation. Is this easy to do with Grafana?

3 comments

Grafana is a UI, not a database (it doesn't store any data.)

Plugins are used for showing pie charts, etc.

I don't believe grafana will help you here.

If you have mongodb enterprise you can use Mongo bi connector and connect it with any bi tool. I recommend metabase since it is open source and very good for slice and dice and reports.

The mongodb bi connector is a postgres with foreign data wrapper to mongodb. So even if you don't have a mongodb subscription, you may be able to pull this off using the OS version https://github.com/EnterpriseDB/mongo_fdw

I've never tried this one, but the mongo datasource plugin exists: https://github.com/JamesOsgood/mongodb-grafana

Maybe you can use it directly this way? (if you don't mind the BI-equivalent hammering your primary data source)