stats

module:stats

Description:
  • Collects metrics about host and processes like CPU, memory, network, API rates... All metrics are stored in a single object and sent to the confgured destination

    To use Elasticsearch run bkjs es-prepare-stats -table bk_stats Then set in config stats-target={ "url": "http://localhost:9200/bk_stats/_doc/" }

Source:

Members

(static) args :Array.<ConfigOptions>

Source:
Default Value:
  • [
      {
        "name": "flags",
        "type": "list",
        "descr": "Feature flags"
      },
      {
        "name": "interval",
        "type": "int",
        "descr": "Interval for process stats collection in ms"
      },
      {
        "name": "target",
        "type": "json",
        "descr": "Target options, one of file, url, log..."
      },
      {
        "name": "roles",
        "type": "list",
        "descr": "Process roles that report stats only"
      },
      {
        "name": "filter",
        "obj": "filter",
        "type": "map",
        "maptype": "regexp",
        "merge": 1,
        "noempty": 1,
        "descr": "For each metric prefix provide regexp to keep only matched stats",
        "example": "-stats-filter db:dynamodb"
      }
    ]