Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[[inputs.mongodb]] adding querys for mongodb? #4252

Closed
fchiorascu opened this issue Jun 8, 2018 · 8 comments
Closed

[[inputs.mongodb]] adding querys for mongodb? #4252

fchiorascu opened this issue Jun 8, 2018 · 8 comments
Labels
area/mongodb feature request Requests for new plugin and for new features to existing plugins good first issue This is a smaller issue suited for getting started in Telegraf, Golang, and contributing to OSS. help wanted Request for community participation, code, contribution size/l 1 week or more effort waiting for response waiting for response from contributor

Comments

@fchiorascu
Copy link

Feature Request

Proposal:

https://github.com/influxdata/telegraf/tree/master/plugins/inputs/mongodb
Is there a possibility to have 1 or 2 queries or something optimized for future releases in order to query also inside MongoDB?

Current behavior:

Nothing regarding queries in case of MongoDB.

Desired behavior:

To have some queries like for mysql: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/mysql

Use case: [Why is this important (helps with prioritizing requests)]

Because MongoDB is a DB very used nowadays and it is very good to have this implemented to track some behaviors. In addition to this it will offer more visibility to the users.

@danielnelson
Copy link
Contributor

What sort of queries are you interested in?

@danielnelson danielnelson added feature request Requests for new plugin and for new features to existing plugins area/mongodb need more info labels Jun 8, 2018
@fchiorascu
Copy link
Author

fchiorascu commented Jun 9, 2018

Hi Daniel,

  1. What i would seek for this queries is related to a normal behavior of the database when is under Production with > nnn clients.
    The main topics that I'm interested are some queries for:
  • Add something recurrent in the database.
  • Delete something from the database.
  • Update something in the database;
  • Search something or multiple things in database in order to track an action;
    More or less to be able to have this type of queries that could be validated with an value or a tag: 0/ 1, success, not ok. Something like this in order to know that the action was ok.

Because on daily basis I track the performance of the database, but what is doing exactly and if is working ok for example for 1 client I don't have such a visibility, and if something is going wrog for a client then I could observe and check if is something general or isolated, single user case.
I'll start with this, they are very good things to have.

  1. I don't mind if there is a possibility to have like a probe instead to do all the actions: insert/add, update, search, delete all together or something like this.

I want to have it all with telegraf not to use multiple tools for multiple cases, and if there is a way to have something like this in mongoDB it will be very nice.

Kind Regards,

@danielnelson
Copy link
Contributor

What do you think about something similar to postgres_extensible where you specify custom queries?

@fchiorascu
Copy link
Author

Hi Daniel.

I think that is a very good idea to implement in case of MongoDB, I like the option and I found it very useful.
Thank you for understanding and support. I'll wait and I hope this will be implemented in the next 2 months. All the best wishes.

Kind Regards,

@lchunleo
Copy link

Hi

i have quite a similar use where i actually store data in my mongodb. But i would like to use Telegraf to get the custom data out and put into influxdata to visualize and do time series related analysis.. Is this possible? thanks

@ssoroka
Copy link
Contributor

ssoroka commented Aug 17, 2021

So at this point we're looking for someone to contribute a new plugin to do this, following the example of the postgres_extensible input plugin/

@ssoroka ssoroka added good first issue This is a smaller issue suited for getting started in Telegraf, Golang, and contributing to OSS. help wanted Request for community participation, code, contribution labels Aug 17, 2021
@reimda
Copy link
Contributor

reimda commented Aug 1, 2022

@fchiorascu It's been a long time since this was discussed. Do you still need this? There hasn't been much demand for it. Are you able to put together a PR to implement it? Thanks

@reimda reimda added waiting for response waiting for response from contributor size/l 1 week or more effort labels Aug 1, 2022
@telegraf-tiger
Copy link
Contributor

Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Page. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mongodb feature request Requests for new plugin and for new features to existing plugins good first issue This is a smaller issue suited for getting started in Telegraf, Golang, and contributing to OSS. help wanted Request for community participation, code, contribution size/l 1 week or more effort waiting for response waiting for response from contributor
Projects
None yet
Development

No branches or pull requests

5 participants