403Webshell
Server IP : www.new.bangkokfinder.com  /  Your IP : 172.70.208.161
Web Server : nginx/1.20.1
System : Linux new 4.15.0-159-generic #167-Ubuntu SMP Tue Sep 21 08:55:05 UTC 2021 x86_64
User : bangkokfinder ( 1000)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/datadog-agent/conf.d/mongo.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/datadog-agent/conf.d/mongo.d/conf.yaml.example
## All options defined here are available to all instances.
#
init_config:

    ## @param service - string - optional
    ## Attach the tag `service:<SERVICE>` to every metric, event, and service check emitted by this integration.
    ##
    ## Additionally, this sets the default `service` for every log source.
    #
    # service: <SERVICE>

## Every instance is scheduled independent of the others.
#
instances:

    ## @param hosts - list of strings - required
    ## The host (and optional port number) where the mongod instance (or mongos instances for
    ## a sharded cluster) is running. You can specify a hostname, IP address, or UNIX domain
    ## socket. Specify as many hosts as appropriate for your deployment topology:
    ##
    ##   - For a standalone, specify the hostname of the standalone mongod instance.
    ##   - For a replica set, specify the hostname of a mongod instance as listed in
    ##     the replica set configuration. You need one check instance per mongod instance
    ##     in order to collect replication metrics and events.
    ##   - For a sharded cluster, you need one check instance for each mongod instance in
    ##     each shard (including the configsvr shard) as well as one additional check instance
    ##     that connects to one (or more) mongos node.
    ##
    ## If the port number is not specified, the default port 27017 is used.
    ##
    ## Even if the host is an arbiter node, you still need to provide authentication credentials
    ## as the check will create an additional connection to the primary in this specific case.
    ##
    ## Do not specify more than one host here unless you are connecting to a mongos instance
    ## and you want to balance requests performed by the agent to multiple mongos instances.
    #
  - hosts:
      - <HOST>:<PORT>

    ## @param username - string - optional
    ## The username to use for authentication.
    #
    # username: <USERNAME>

    ## @param password - string - optional
    ## The password to use for authentication.
    #
    # password: <PASSWORD>

    ## @param database - string - optional
    ## The database to collect metrics from.
    ## This is also the authentication database to use if a `username` and `password` is set but the `authSource` is not
    ## specified in `options`. If `database` is not set and the `authSource` is not specified in `options`,
    ## the check will attempt to authenticate `username` to the admin database.
    #
    # database: <DATABASE>

    ## @param options - mapping - optional
    ## For a complete list of available connection options, see:
    ## https://docs.mongodb.com/manual/reference/connection-string/#connections-connection-options
    ##
    ## NOTE: For monitoring replica set, do not use the replSet parameter as the Agent expects to always
    ## connect to the same host. Instead configure one check instance for each node.
    #
    # options: {}

    ## @param replica_check - boolean - optional - default: true
    ## Whether or not to read from available replicas.
    ## Disable this if any replicas are inaccessible to the Agent. This option is not supported for sharded clusters.
    #
    # replica_check: true

    ## @param timeout - integer - optional - default: 30
    ## Controls connectTimeoutMS, serverSelectionTimeoutMS and socketTimeoutMS
    ## see http://api.mongodb.com/python/3.4.0/api/pymongo/mongo_client.html
    #
    # timeout: 30

    ## @param ssl - boolean - optional - default: false
    ## If `True`, create the connection to the server using SSL.
    #
    # ssl: false

    ## @param ssl_keyfile - string - optional
    ## Path to the private key file used to identify the local connection against Mongodb.
    #
    # ssl_keyfile: <SSL_KEYFILE>

    ## @param ssl_certfile - string - optional
    ## Path to the certificate file used to identify the local connection against Mongodb.
    #
    # ssl_certfile: <SSL_CERTFILE>

    ## @param ssl_cert_reqs - integer - optional
    ## Specifies whether a certificate is required from the other side of the connection, and whether it will be
    ## validated if provided.
    ## Possible values:
    ##   * 0 for ssl.CERT_NONE (certificates ignored)
    ##   * 1 for ssl.CERT_OPTIONAL (not required, but validated if provided)
    ##   * 2 for ssl.CERT_REQUIRED (required and validated)
    #
    # ssl_cert_reqs: <SSL_CERT_REQS>

    ## @param ssl_ca_certs - string - optional
    ## Path to the ca_certs file.
    #
    # ssl_ca_certs: <SSL_CA_CERTS>

    ## @param additional_metrics - list of strings - optional
    ## By default, the check collects a sample of metrics from MongoDB.
    ## This  parameter instructs the check to collect additional metrics on specific topics.
    ## Available options are:
    ##   * `metrics.commands` - Use of database commands
    ##   * `tcmalloc` -  TCMalloc memory allocator
    ##   * `top` - Usage statistics for each collection
    ##   * `collection` - Metrics of the specified collections
    ##   * `jumbo_chunks` - Count and percentage of jumbo chunks. Ignored on mongod instances.
    #
    # additional_metrics:
    #   - metrics.commands
    #   - tcmalloc
    #   - top
    #   - collection
    #   - jumbo_chunks

    ## @param collections - list of strings - optional
    ## Collect metrics on specific collections from the database specified
    ## IT Requires `additional_metrics.collection` to be present.
    ## Metrics such as `mongodb.collection.count` are collected for each named collection and tagged as follows:
    ##  * `db:<DB_NAME>` e.g. `db:<DB_NAME>`
    ##  * `collection:<COLLECTION_NAME>` e.g. `collection:<COLLECTION_NAME>`
    ## Each collection generates many metrics, up to 8 + the number of indices on the collection for each collection.
    #
    # collections:
    #   - <COLLECTION_NAME>

    ## @param collections_indexes_stats - boolean - optional - default: false
    ## Collect indexes access metrics for every index in every collections in
    ## the 'collections' list. This is available starting MongoDB 3.2.
    #
    # collections_indexes_stats: false

    ## @param custom_queries - list of mappings - optional
    ## Define custom queries to collect custom metrics on your Mongo
    ## Note: Custom queries are ignored by default when the mongo node is a secondary of a replica set.
    ## You can add `run_on_secondary: true` for each query that you want to run on both primaries and secondaries.
    ## See https://docs.datadoghq.com/integrations/guide/mongo-custom-query-collection to learn more.
    #
    # custom_queries:
    #   - metric_prefix: mongo
    #     query: <MONGO_COMMAND_QUERY>
    #     database: <MONGO_DATABASE>
    #     fields:
    #     - field_name: <FIELD_NAME>
    #       name: <METRIC_SUFFIX>
    #       type: <METRIC_TYPE>
    #     tags:
    #     - test:mongodb

    ## @param server - string - optional
    ## Specify the MongoDB URI, with database to use for reporting (defaults to "admin")
    ## E.g. mongodb://datadog:LnCbkX4uhpuLHSUrcayEoAZA@localhost:27016/admin
    ##
    ##
    ## <<< DEPRECATED >>>
    ##
    ## Release: 8.0.0
    ## Migration: Use the following options instead:
    ##            hosts, username, password, database, options
    #
    # server: mongodb://<USER>:<PASSWORD>@<HOST>:<PORT>/<DB_NAME>

    ## @param tags - list of strings - optional
    ## A list of tags to attach to every metric and service check emitted by this instance.
    ##
    ## Learn more about tagging at https://docs.datadoghq.com/tagging
    #
    # tags:
    #   - <KEY_1>:<VALUE_1>
    #   - <KEY_2>:<VALUE_2>

    ## @param service - string - optional
    ## Attach the tag `service:<SERVICE>` to every metric, event, and service check emitted by this integration.
    ##
    ## Overrides any `service` defined in the `init_config` section.
    #
    # service: <SERVICE>

    ## @param min_collection_interval - number - optional - default: 15
    ## This changes the collection interval of the check. For more information, see:
    ## https://docs.datadoghq.com/developers/write_agent_check/#collection-interval
    #
    # min_collection_interval: 15

    ## @param empty_default_hostname - boolean - optional - default: false
    ## This forces the check to send metrics with no hostname.
    ##
    ## This is useful for cluster-level checks.
    #
    # empty_default_hostname: false

## Log Section
##
## type - required - Type of log input source (tcp / udp / file / windows_event)
## port / path / channel_path - required - Set port if type is tcp or udp.
##                                         Set path if type is file.
##                                         Set channel_path if type is windows_event.
## source  - required - Attribute that defines which integration sent the logs.
## encoding - optional - For file specifies the file encoding, default is utf-8, other
##                       possible values are utf-16-le and utf-16-be.
## service - optional - The name of the service that generates the log.
##                      Overrides any `service` defined in the `init_config` section.
## tags - optional - Add tags to the collected logs.
##
## Discover Datadog log collection: https://docs.datadoghq.com/logs/log_collection/
#
# logs:
#   - type: file
#     path: /var/log/mongodb/mongodb.log
#     source: mongo
#     service: <SERVICE>

Youez - 2016 - github.com/yon3zu
LinuXploit