Skip to content

Instantly share code, notes, and snippets.

@Zhomart
Created November 10, 2016 18:40
Show Gist options
  • Save Zhomart/9f37598e71c7a1f0403f2d488fddac05 to your computer and use it in GitHub Desktop.
Save Zhomart/9f37598e71c7a1f0403f2d488fddac05 to your computer and use it in GitHub Desktop.
Metricbeats 5.0 on mac os x producing errors for mongodb.status module

Configuration

    metricbeat.modules:
    - module: mongodb
      hosts:
        - localhost:27017
      metricsets:
        - status
      enabled: true
      period: 2s

Here is the output:

    2016/11/10 18:33:15.595230 schema.go:36: ERR Error on field 'bytes': Key not found
    2016/11/10 18:33:15.595270 mapstriface.go:74: ERR Error accessing sub-dictionary `backgroundFlushing`
    2016/11/10 18:33:15.595294 mapstriface.go:74: ERR Error accessing sub-dictionary `dur`
    2016/11/10 18:33:15.595556 client.go:184: DBG  Publish: {
      "@timestamp": "2016-11-10T18:33:15.590Z",
      "beat": {
        "hostname": "Zhomarts-MacBook-Pro.local",
        "name": "Zhomarts-MacBook-Pro.local",
        "version": "5.0.0"
      },
      "fields": {
        "env": "staging"
      },
      "metricset": {
        "host": "localhost:27017",
        "module": "mongodb",
        "name": "status",
        "rtt": 4820
      },
      "mongodb": {
        "status": {
          "asserts": {
            "msg": 0,
            "regular": 0,
            "rollovers": 0,
            "user": 0,
            "warning": 0
          },
          "connections": {
            "available": 3275,
            "current": 1,
            "total_created": 253
          },
          "extra_info": {
            "heap_usage": {},
            "page_faults": 3133
          },
          "local_time": "2016-11-10T18:33:15.592Z",
          "memory": {
            "bits": 64,
            "mapped": {
              "mb": 0
            },
            "mapped_with_journal": {
              "mb": 0
            },
            "resident": {
              "mb": 219
            },
            "virtual": {
              "mb": 2871
            }
          },
          "network": {
            "in": {
              "bytes": 13111787
            },
            "out": {
              "bytes": 30163981
            },
            "requests": 48727
          },
          "opcounters": {
            "command": 14931,
            "delete": 2,
            "getmore": 0,
            "insert": 5323,
            "query": 23840,
            "update": 4633
          },
          "opcounters_replicated": {
            "command": 0,
            "delete": 0,
            "getmore": 0,
            "insert": 0,
            "query": 0,
            "update": 0
          },
          "storage_engine": {
            "name": "wiredTiger"
          },
          "uptime": {
            "ms": 242467091
          },
          "version": "3.2.9",
          "write_backs_queued": false
        }
      },
      "tags": [
        "zhomart",
        "macbook"
      ],
      "type": "metricsets"
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment