influxdata/telegraf

MongoDb: Adding availability to call function for collecting user specific metrics

Open

#11.312 geöffnet am 16. Juni 2022

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (4.161 Forks)batch import
area/mongodbfeature requesthelp wantedsize/l

Repository-Metriken

Stars
 (9.892 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 2T 12h) (136 gemergte PRs in 30 T)

Beschreibung

Feature Request

Opening a feature request kicks off a discussion.

Proposal:

For collecting user specific metrics it's very usfull call user defined function in MondoDb

Current behavior:

For Now, MongoDb plugin can not call user function;

Desired behavior:

For example, like in redis plugin realized it:

## Optional. Specify redis commands to retrieve values
  # [[inputs.redis.commands]]
  #   # The command to run where each argument is a separate element
  #   command = ["get", "sample-key"]
  #   # The field to store the result in
  #   field = "sample-key-value"
  #   # The type of the result
  #   # Can be "string", "integer", or "float"
  #   type = "string"

Use case:

  1. To get different metrics (which not realized in base mongodb plugin ) based on rs.status()
  2. To get business metrics based on user's collection data.

Contributor Guide