{
  "name": "mongodb",
  "title": "MongoDB",
  "version": "1.18.0",
  "release": "ga",
  "description": "Collect logs and metrics from MongoDB instances with Elastic Agent.",
  "type": "integration",
  "download": "/epr/mongodb/mongodb-1.18.0.zip",
  "path": "/package/mongodb/1.18.0",
  "icons": [
    {
      "src": "/img/logo_mongodb.svg",
      "path": "/package/mongodb/1.18.0/img/logo_mongodb.svg",
      "title": "logo mongodb",
      "size": "32x32",
      "type": "image/svg+xml"
    }
  ],
  "conditions": {
    "kibana": {
      "version": "^8.13.0"
    },
    "elastic": {
      "subscription": "basic"
    }
  },
  "owner": {
    "type": "elastic",
    "github": "elastic/obs-infraobs-integrations"
  },
  "categories": [
    "datastore",
    "observability"
  ],
  "signature_path": "/epr/mongodb/mongodb-1.18.0.zip.sig",
  "format_version": "3.0.2",
  "readme": "/package/mongodb/1.18.0/docs/README.md",
  "license": "basic",
  "screenshots": [
    {
      "src": "/img/filebeat-mongodb-overview.png",
      "path": "/package/mongodb/1.18.0/img/filebeat-mongodb-overview.png",
      "title": "filebeat mongodb overview",
      "size": "1920x1080",
      "type": "image/png"
    },
    {
      "src": "/img/metricbeat-mongodb-overview.png",
      "path": "/package/mongodb/1.18.0/img/metricbeat-mongodb-overview.png",
      "title": "metricbeat mongodb overview",
      "size": "1920x1080",
      "type": "image/png"
    }
  ],
  "assets": [
    "/package/mongodb/1.18.0/LICENSE.txt",
    "/package/mongodb/1.18.0/changelog.yml",
    "/package/mongodb/1.18.0/manifest.yml",
    "/package/mongodb/1.18.0/docs/README.md",
    "/package/mongodb/1.18.0/img/filebeat-mongodb-overview.png",
    "/package/mongodb/1.18.0/img/logo_mongodb.svg",
    "/package/mongodb/1.18.0/img/metricbeat-mongodb-overview.png",
    "/package/mongodb/1.18.0/data_stream/collstats/manifest.yml",
    "/package/mongodb/1.18.0/data_stream/collstats/sample_event.json",
    "/package/mongodb/1.18.0/data_stream/dbstats/manifest.yml",
    "/package/mongodb/1.18.0/data_stream/dbstats/sample_event.json",
    "/package/mongodb/1.18.0/data_stream/log/manifest.yml",
    "/package/mongodb/1.18.0/data_stream/log/sample_event.json",
    "/package/mongodb/1.18.0/data_stream/metrics/manifest.yml",
    "/package/mongodb/1.18.0/data_stream/metrics/sample_event.json",
    "/package/mongodb/1.18.0/data_stream/replstatus/manifest.yml",
    "/package/mongodb/1.18.0/data_stream/replstatus/sample_event.json",
    "/package/mongodb/1.18.0/data_stream/status/manifest.yml",
    "/package/mongodb/1.18.0/data_stream/status/sample_event.json",
    "/package/mongodb/1.18.0/kibana/dashboard/mongodb-Metrics-MongoDB.json",
    "/package/mongodb/1.18.0/kibana/dashboard/mongodb-abcf35b0-0a82-11e8-bffe-ff7d4f68cf94.json",
    "/package/mongodb/1.18.0/kibana/search/mongodb-bfc96a60-0a80-11e8-bffe-ff7d4f68cf94.json",
    "/package/mongodb/1.18.0/kibana/search/mongodb-e49fe000-0a7e-11e8-bffe-ff7d4f68cf94.json",
    "/package/mongodb/1.18.0/data_stream/collstats/fields/agent.yml",
    "/package/mongodb/1.18.0/data_stream/collstats/fields/base-fields.yml",
    "/package/mongodb/1.18.0/data_stream/collstats/fields/ecs.yml",
    "/package/mongodb/1.18.0/data_stream/collstats/fields/fields.yml",
    "/package/mongodb/1.18.0/data_stream/dbstats/fields/agent.yml",
    "/package/mongodb/1.18.0/data_stream/dbstats/fields/base-fields.yml",
    "/package/mongodb/1.18.0/data_stream/dbstats/fields/ecs.yml",
    "/package/mongodb/1.18.0/data_stream/dbstats/fields/fields.yml",
    "/package/mongodb/1.18.0/data_stream/log/fields/agent.yml",
    "/package/mongodb/1.18.0/data_stream/log/fields/base-fields.yml",
    "/package/mongodb/1.18.0/data_stream/log/fields/fields.yml",
    "/package/mongodb/1.18.0/data_stream/metrics/fields/agent.yml",
    "/package/mongodb/1.18.0/data_stream/metrics/fields/base-fields.yml",
    "/package/mongodb/1.18.0/data_stream/metrics/fields/ecs.yml",
    "/package/mongodb/1.18.0/data_stream/metrics/fields/fields.yml",
    "/package/mongodb/1.18.0/data_stream/replstatus/fields/agent.yml",
    "/package/mongodb/1.18.0/data_stream/replstatus/fields/base-fields.yml",
    "/package/mongodb/1.18.0/data_stream/replstatus/fields/ecs.yml",
    "/package/mongodb/1.18.0/data_stream/replstatus/fields/fields.yml",
    "/package/mongodb/1.18.0/data_stream/status/fields/agent.yml",
    "/package/mongodb/1.18.0/data_stream/status/fields/base-fields.yml",
    "/package/mongodb/1.18.0/data_stream/status/fields/fields.yml",
    "/package/mongodb/1.18.0/data_stream/collstats/agent/stream/stream.yml.hbs",
    "/package/mongodb/1.18.0/data_stream/dbstats/agent/stream/stream.yml.hbs",
    "/package/mongodb/1.18.0/data_stream/log/agent/stream/log.yml.hbs",
    "/package/mongodb/1.18.0/data_stream/log/elasticsearch/ingest_pipeline/default.yml",
    "/package/mongodb/1.18.0/data_stream/log/elasticsearch/ingest_pipeline/pipeline-json.yml",
    "/package/mongodb/1.18.0/data_stream/log/elasticsearch/ingest_pipeline/pipeline-plaintext.yml",
    "/package/mongodb/1.18.0/data_stream/metrics/agent/stream/stream.yml.hbs",
    "/package/mongodb/1.18.0/data_stream/replstatus/agent/stream/stream.yml.hbs",
    "/package/mongodb/1.18.0/data_stream/status/agent/stream/stream.yml.hbs"
  ],
  "policy_templates": [
    {
      "name": "mongodb",
      "title": "MongoDB logs and metrics",
      "description": "Collect logs and metrics from MongoDB instances",
      "inputs": [
        {
          "type": "logfile",
          "title": "Collect MongoDB application logs",
          "description": "Collecting application logs from MongoDB instances"
        },
        {
          "type": "mongodb/metrics",
          "vars": [
            {
              "name": "hosts",
              "type": "text",
              "title": "Hosts",
              "multi": true,
              "required": true,
              "show_user": true,
              "default": [
                "localhost:27017"
              ]
            },
            {
              "name": "ssl.enabled",
              "type": "bool",
              "title": "SSL enabled",
              "multi": false,
              "required": false,
              "show_user": false,
              "default": false
            },
            {
              "name": "ssl.verification_mode",
              "type": "text",
              "title": "Mode of verification of server certificate ('none' or 'full')",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "ssl.certificate_authorities",
              "type": "text",
              "title": "List of root certificates for TLS server verifications",
              "multi": true,
              "required": false,
              "show_user": false
            },
            {
              "name": "ssl.certificate",
              "type": "text",
              "title": "Certificate for SSL client authentication",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "ssl.key",
              "type": "text",
              "title": "Client Certificate Key",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "username",
              "type": "text",
              "title": "Username",
              "description": "Use when connecting to MongoDB. Empty by default.",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "password",
              "type": "password",
              "title": "Password",
              "description": "Use when connecting to MongoDB. Empty by default.",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "title": "Collect MongoDB metrics",
          "description": "Collecting metrics from MongoDB instances"
        }
      ],
      "multiple": true
    }
  ],
  "data_streams": [
    {
      "type": "metrics",
      "dataset": "mongodb.collstats",
      "title": "MongoDB collstats metrics",
      "release": "ga",
      "streams": [
        {
          "input": "mongodb/metrics",
          "vars": [
            {
              "name": "period",
              "type": "text",
              "title": "Period",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "10s"
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the events are shipped. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "stream.yml.hbs",
          "title": "MongoDB collstats metrics",
          "description": "Collect MongoDB collstats metrics",
          "enabled": true,
          "ingestion_method": "Database"
        }
      ],
      "package": "mongodb",
      "elasticsearch": {},
      "path": "collstats"
    },
    {
      "type": "metrics",
      "dataset": "mongodb.dbstats",
      "title": "MongoDB dbstats metrics",
      "release": "ga",
      "streams": [
        {
          "input": "mongodb/metrics",
          "vars": [
            {
              "name": "period",
              "type": "text",
              "title": "Period",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "10s"
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the events are shipped. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "stream.yml.hbs",
          "title": "MongoDB dbstats metrics",
          "description": "Collect MongoDB dbstats metrics",
          "enabled": true,
          "ingestion_method": "Database"
        }
      ],
      "package": "mongodb",
      "elasticsearch": {},
      "path": "dbstats"
    },
    {
      "type": "logs",
      "dataset": "mongodb.log",
      "title": "mongodb log logs",
      "release": "ga",
      "ingest_pipeline": "default",
      "streams": [
        {
          "input": "logfile",
          "vars": [
            {
              "name": "paths",
              "type": "text",
              "title": "Paths",
              "multi": true,
              "required": true,
              "show_user": true,
              "default": [
                "/var/log/mongodb/mongod.log"
              ]
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": false,
              "default": [
                "mongodb-logs"
              ]
            },
            {
              "name": "preserve_original_event",
              "type": "bool",
              "title": "Preserve original event",
              "description": "Preserves a raw copy of the original event, added to the field `event.original`",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": false
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the logs are parsed. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "log.yml.hbs",
          "title": "MongoDB logs",
          "description": "Collect MongoDB logs",
          "enabled": true,
          "ingestion_method": "File"
        }
      ],
      "package": "mongodb",
      "path": "log"
    },
    {
      "type": "metrics",
      "dataset": "mongodb.metrics",
      "title": "MongoDB metrics",
      "release": "ga",
      "streams": [
        {
          "input": "mongodb/metrics",
          "vars": [
            {
              "name": "period",
              "type": "text",
              "title": "Period",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "10s"
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the events are shipped. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "stream.yml.hbs",
          "title": "MongoDB metrics",
          "description": "Collect MongoDB use and state metrics",
          "enabled": true,
          "ingestion_method": "Database"
        }
      ],
      "package": "mongodb",
      "elasticsearch": {},
      "path": "metrics"
    },
    {
      "type": "metrics",
      "dataset": "mongodb.replstatus",
      "title": "MongoDB replstatus metrics",
      "release": "ga",
      "streams": [
        {
          "input": "mongodb/metrics",
          "vars": [
            {
              "name": "period",
              "type": "text",
              "title": "Period",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "10s"
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the events are shipped. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "stream.yml.hbs",
          "title": "MongoDB replstatus metrics",
          "description": "Collect MongoDB replstatus metrics",
          "enabled": true,
          "ingestion_method": "Database"
        }
      ],
      "package": "mongodb",
      "elasticsearch": {},
      "path": "replstatus"
    },
    {
      "type": "metrics",
      "dataset": "mongodb.status",
      "title": "MongoDB status metrics",
      "release": "ga",
      "streams": [
        {
          "input": "mongodb/metrics",
          "vars": [
            {
              "name": "period",
              "type": "text",
              "title": "Period",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "10s"
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the events are shipped. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "stream.yml.hbs",
          "title": "MongoDB status metrics",
          "description": "Collect MongoDB status metrics",
          "enabled": true,
          "ingestion_method": "Database"
        }
      ],
      "package": "mongodb",
      "elasticsearch": {},
      "path": "status"
    }
  ]
}
