topbeat

command module
v1.0.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

README

Jenkins Build Status Build Status codecov.io

topbeat

Topbeat is the Beat used for server monitoring. It is a lightweight agent that installed on your servers, reads periodically system wide and per process CPU and memory statistics and indexes them in Elasticsearch.

Exported fields

There are two types of documents exported:

  • type: system for system wide statistics
  • type: proc for per process statistics. One per process is generated.

{
  "_index": "topbeat-2015.10.30",
  "_type": "proc",
  "_id": "AVC5EgksdTLnTMyb6dAs",
  "_score": null,
  "_source": {
    "@timestamp": "2015-10-30T14:06:17.412Z",
    "count": 1,
    "proc": {
      "cpu": {
        "user": 1998400,
        "user_p": 0.01,
        "system": 603688,
        "total": 2602088,
        "start_time": "Oct28"
      },
      "mem": {
        "size": 1106194432,
        "rss": 214093824,
        "rss_p": 0.01,
        "share": 0
      },
      "name": "zoom.us",
      "pid": 234,
      "ppid": 1,
      "state": "running"
    },
    "shipper": "mar.localdomain",
    "type": "proc"
  },
  "fields": {
    "@timestamp": [
      1446213977412
    ]
  },
  "highlight": {
    "type": [
      "@kibana-highlighted-field@proc@/kibana-highlighted-field@"
    ]
  },
  "sort": [
    1446213977412
  ]
}

{
  "_index": "topbeat-2015.10.30",
  "_type": "system",
  "_id": "AVC5EfWidTLnTMyb6c7B",
  "_score": null,
  "_source": {
    "@timestamp": "2015-10-30T14:06:12.405Z",
    "count": 1,
    "cpu": {
      "user": 1737666,
      "user_p": 0.05,
      "nice": 0,
      "system": 1483741,
      "system_p": 0.05,
      "idle": 19489227,
      "iowait": 0,
      "irq": 0,
      "softirq": 0,
      "steal": 0
    },
    "load": {
      "load1": 2.26513671875,
      "load5": 2.1513671875,
      "load15": 1.96728515625
    },
    "mem": {
      "total": 17179869184,
      "used": 11818733568,
      "free": 5361135616,
      "used_p": 0.69,
      "actual_used": 9940553728,
      "actual_free": 7239315456,
      "actual_used_p": 0.57
    },
    "shipper": "mar.localdomain",
    "swap": {
      "total": 1073741824,
      "used": 219414528,
      "free": 854327296,
      "used_p": 0.2,
      "actual_used": 0,
      "actual_free": 0,
      "actual_used_p": 0.0
    },
    "type": "system"
  },
  "fields": {
    "@timestamp": [
      1446213972405
    ]
  },
  "highlight": {
    "type": [
      "@kibana-highlighted-field@system@/kibana-highlighted-field@"
    ]
  },
  "sort": [
    1446213972405
  ]
}

{
  "_index": "topbeat-2015.10.30",
  "_type": "filesystem",
  "_id": "AVC5EgksdTLnTMyb6dA2",
  "_score": null,
  "_source": {
    "@timestamp": "2015-10-30T14:06:17.412Z",
    "count": 1,
    "fs": {
      "device_name": "devfs",
      "total": 347648,
      "used": 347648,
      "used_p": 1,
      "free": 0,
      "avail": 0,
      "files": 1176,
      "free_files": 0,
      "mount_point": "/dev"
    },
    "shipper": "mar.localdomain",
    "type": "filesystem"
  },
  "fields": {
    "@timestamp": [
      1446213977412
    ]
  },
  "highlight": {
    "type": [
      "@kibana-highlighted-field@filesystem@/kibana-highlighted-field@"
    ]
  },
  "sort": [
    1446213977412
  ]
}

Elasticsearch template

To apply topbeat template:

curl -XPUT 'http://localhost:9200/_template/topbeat' -d@etc/topbeat.template.json

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/elastic/gosigar/psnotify
Go interface to the Linux netlink process connector.
Go interface to the Linux netlink process connector.
_workspace/src/github.com/elastic/libbeat/common/streambuf
The streambuf module provides helpers for buffering multiple packet payloads and some general parsing functions.
The streambuf module provides helpers for buffering multiple packet payloads and some general parsing functions.
_workspace/src/github.com/elastic/libbeat/outputs/mode
Package mode defines and implents output strategies with failover or load balancing modes for use by output plugins.
Package mode defines and implents output strategies with failover or load balancing modes for use by output plugins.
_workspace/src/github.com/garyburd/redigo/internal/redistest
Package redistest contains utilities for writing Redigo tests.
Package redistest contains utilities for writing Redigo tests.
_workspace/src/github.com/garyburd/redigo/redis
Package redis is a client for the Redis database.
Package redis is a client for the Redis database.
_workspace/src/github.com/stretchr/testify/assert
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
_workspace/src/gopkg.in/yaml.v2
Package yaml implements YAML support for the Go language.
Package yaml implements YAML support for the Go language.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL