Golang expvar metricset

edit

This is the expvar metricset of the Golang module. Go can expose its variables by the expvar API. With this metricset, you can collect all the expvar-exposed variables.

Fields

edit

For a description of each field in the metricset, see the exported fields section.

Here is an example document generated by this metricset:

{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "agent": {
        "hostname": "host.example.com",
        "name": "host.example.com"
    },
    "event": {
        "dataset": "golang.metricbeat",
        "duration": 115000,
        "module": "golang"
    },
    "golang": {
        "metricbeat": {
            "beat.cpu.system.ticks": 1860,
            "beat.cpu.system.time.ms": 1860,
            "beat.cpu.total.ticks": 4080,
            "beat.cpu.total.time.ms": 4080,
            "beat.cpu.total.value": 4080,
            "beat.cpu.user.ticks": 2220,
            "beat.cpu.user.time.ms": 2220,
            "beat.handles.limit.hard": 1048576,
            "beat.handles.limit.soft": 1048576,
            "beat.handles.open": 7,
            "beat.info.ephemeral_id": "f9b12c67-b693-4265-b4d4-cd41d633cc7b",
            "beat.info.uptime.ms": 1535445,
            "beat.memstats.gc_next": 22896432,
            "beat.memstats.memory_alloc": 13341568,
            "beat.memstats.memory_total": 457340536,
            "beat.memstats.rss": 55713792,
            "cmdline": "metricbeat --httpprof :6060 -e",
            "libbeat.config.module.running": 0,
            "libbeat.config.module.starts": 0,
            "libbeat.config.module.stops": 0,
            "libbeat.config.reloads": 1,
            "libbeat.output.events.acked": 0,
            "libbeat.output.events.active": 0,
            "libbeat.output.events.batches": 0,
            "libbeat.output.events.dropped": 0,
            "libbeat.output.events.duplicates": 0,
            "libbeat.output.events.failed": 0,
            "libbeat.output.events.total": 0,
            "libbeat.output.read.bytes": 0,
            "libbeat.output.read.errors": 0,
            "libbeat.output.type": "elasticsearch",
            "libbeat.output.write.bytes": 0,
            "libbeat.output.write.errors": 0,
            "libbeat.pipeline.clients": 6,
            "libbeat.pipeline.events.active": 1423,
            "libbeat.pipeline.events.dropped": 0,
            "libbeat.pipeline.events.failed": 0,
            "libbeat.pipeline.events.filtered": 26,
            "libbeat.pipeline.events.published": 1423,
            "libbeat.pipeline.events.retry": 348,
            "libbeat.pipeline.events.total": 1449,
            "libbeat.pipeline.queue.acked": 0,
            "memstats": {
                "Alloc": 13572176,
                "BuckHashSys": 1547603,
                "BySize": [
                    {
                        "Frees": 0,
                        "Mallocs": 0,
                        "Size": 0
                    },
                    {
                        "Frees": 43687,
                        "Mallocs": 44075,
                        "Size": 8
                    },
                    {
                        "Frees": 564377,
                        "Mallocs": 582767,
                        "Size": 16
                    },
                    {
                        "Frees": 1263596,
                        "Mallocs": 1280262,
                        "Size": 32
                    },
                    {
                        "Frees": 177107,
                        "Mallocs": 201267,
                        "Size": 48
                    },
                    {
                        "Frees": 22479,
                        "Mallocs": 23099,
                        "Size": 64
                    },
                    {
                        "Frees": 90378,
                        "Mallocs": 91273,
                        "Size": 80
                    },
                    {
                        "Frees": 20140,
                        "Mallocs": 20865,
                        "Size": 96
                    },
                    {
                        "Frees": 72469,
                        "Mallocs": 72967,
                        "Size": 112
                    },
                    {
                        "Frees": 31038,
                        "Mallocs": 31842,
                        "Size": 128
                    },
                    {
                        "Frees": 9037,
                        "Mallocs": 9093,
                        "Size": 144
                    },
                    {
                        "Frees": 1957,
                        "Mallocs": 2112,
                        "Size": 160
                    },
                    {
                        "Frees": 3257,
                        "Mallocs": 3292,
                        "Size": 176
                    },
                    {
                        "Frees": 381,
                        "Mallocs": 394,
                        "Size": 192
                    },
                    {
                        "Frees": 80256,
                        "Mallocs": 80752,
                        "Size": 208
                    },
                    {
                        "Frees": 1419,
                        "Mallocs": 1428,
                        "Size": 224
                    },
                    {
                        "Frees": 47,
                        "Mallocs": 66,
                        "Size": 240
                    },
                    {
                        "Frees": 3559,
                        "Mallocs": 3609,
                        "Size": 256
                    },
                    {
                        "Frees": 90124,
                        "Mallocs": 112098,
                        "Size": 288
                    },
                    {
                        "Frees": 154,
                        "Mallocs": 172,
                        "Size": 320
                    },
                    {
                        "Frees": 4368,
                        "Mallocs": 4438,
                        "Size": 352
                    },
                    {
                        "Frees": 6,
                        "Mallocs": 147,
                        "Size": 384
                    },
                    {
                        "Frees": 5108,
                        "Mallocs": 5156,
                        "Size": 416
                    },
                    {
                        "Frees": 3,
                        "Mallocs": 6,
                        "Size": 448
                    },
                    {
                        "Frees": 466,
                        "Mallocs": 474,
                        "Size": 480
                    },
                    {
                        "Frees": 35150,
                        "Mallocs": 35333,
                        "Size": 512
                    },
                    {
                        "Frees": 6533,
                        "Mallocs": 6937,
                        "Size": 576
                    },
                    {
                        "Frees": 117,
                        "Mallocs": 177,
                        "Size": 640
                    },
                    {
                        "Frees": 113,
                        "Mallocs": 119,
                        "Size": 704
                    },
                    {
                        "Frees": 8,
                        "Mallocs": 8,
                        "Size": 768
                    },
                    {
                        "Frees": 14199,
                        "Mallocs": 14287,
                        "Size": 896
                    },
                    {
                        "Frees": 176,
                        "Mallocs": 198,
                        "Size": 1024
                    },
                    {
                        "Frees": 1637,
                        "Mallocs": 1817,
                        "Size": 1152
                    },
                    {
                        "Frees": 4756,
                        "Mallocs": 4799,
                        "Size": 1280
                    },
                    {
                        "Frees": 56,
                        "Mallocs": 61,
                        "Size": 1408
                    },
                    {
                        "Frees": 34304,
                        "Mallocs": 34472,
                        "Size": 1536
                    },
                    {
                        "Frees": 9970,
                        "Mallocs": 10042,
                        "Size": 1792
                    },
                    {
                        "Frees": 294,
                        "Mallocs": 328,
                        "Size": 2048
                    },
                    {
                        "Frees": 6144,
                        "Mallocs": 6182,
                        "Size": 2304
                    },
                    {
                        "Frees": 72,
                        "Mallocs": 85,
                        "Size": 2688
                    },
                    {
                        "Frees": 56,
                        "Mallocs": 60,
                        "Size": 3072
                    },
                    {
                        "Frees": 3,
                        "Mallocs": 6,
                        "Size": 3200
                    },
                    {
                        "Frees": 2,
                        "Mallocs": 2,
                        "Size": 3456
                    },
                    {
                        "Frees": 29633,
                        "Mallocs": 29798,
                        "Size": 4096
                    },
                    {
                        "Frees": 6628,
                        "Mallocs": 6657,
                        "Size": 4864
                    },
                    {
                        "Frees": 510,
                        "Mallocs": 517,
                        "Size": 5376
                    },
                    {
                        "Frees": 2001,
                        "Mallocs": 2021,
                        "Size": 6144
                    },
                    {
                        "Frees": 1,
                        "Mallocs": 1,
                        "Size": 6528
                    },
                    {
                        "Frees": 1,
                        "Mallocs": 1,
                        "Size": 6784
                    },
                    {
                        "Frees": 0,
                        "Mallocs": 0,
                        "Size": 6912
                    },
                    {
                        "Frees": 27,
                        "Mallocs": 30,
                        "Size": 8192
                    },
                    {
                        "Frees": 1215,
                        "Mallocs": 1225,
                        "Size": 9472
                    },
                    {
                        "Frees": 0,
                        "Mallocs": 0,
                        "Size": 9728
                    },
                    {
                        "Frees": 1,
                        "Mallocs": 1,
                        "Size": 10240
                    },
                    {
                        "Frees": 9,
                        "Mallocs": 12,
                        "Size": 10880
                    },
                    {
                        "Frees": 0,
                        "Mallocs": 0,
                        "Size": 12288
                    },
                    {
                        "Frees": 0,
                        "Mallocs": 0,
                        "Size": 13568
                    },
                    {
                        "Frees": 0,
                        "Mallocs": 8,
                        "Size": 14336
                    },
                    {
                        "Frees": 13,
                        "Mallocs": 13,
                        "Size": 16384
                    },
                    {
                        "Frees": 1,
                        "Mallocs": 2,
                        "Size": 18432
                    },
                    {
                        "Frees": 1,
                        "Mallocs": 6,
                        "Size": 19072
                    }
                ],
                "DebugGC": false,
                "EnableGC": true,
                "Frees": 2830660,
                "GCCPUFraction": 0.0000798538053427137,
                "GCSys": 999424,
                "HeapAlloc": 13572176,
                "HeapIdle": 6979584,
                "HeapInuse": 16187392,
                "HeapObjects": 87837,
                "HeapReleased": 0,
                "HeapSys": 23166976,
                "LastGC": 1548771750853510700,
                "Lookups": 82771,
                "MCacheInuse": 6944,
                "MCacheSys": 16384,
                "MSpanInuse": 307800,
                "MSpanSys": 376832,
                "Mallocs": 2918497,
                "NextGC": 22896432,
                "NumForcedGC": 0,
                "NumGC": 77,
                "OtherSys": 850853,
                "PauseEnd": [
                    1548770222000971300,
                    1548770222006573600,
                    1548770222008825300,
                    1548770225031487700,
                    1548770229917994200,
                    1548770238921288400,
                    1548770251057301200,
                    1548770260968103400,
                    1548770273922676000,
                    1548770285006287600,
                    1548770295549599200,
                    1548770308503581200,
                    1548770321494264600,
                    1548770334961248500,
                    1548770345804532000,
                    1548770359924752100,
                    1548770374953077500,
                    1548770390456140500,
                    1548770404909611300,
                    1548770418552278000,
                    1548770434854504400,
                    1548770448883836400,
                    1548770464462267000,
                    1548770478556541000,
                    1548770494842780700,
                    1548770511201850600,
                    1548770524830849500,
                    1548770542548244700,
                    1548770557748526000,
                    1548770574789822700,
                    1548770590459284500,
                    1548770607830817000,
                    1548770624765460200,
                    1548770643750113300,
                    1548770661129715000,
                    1548770679463727800,
                    1548770699042123300,
                    1548770718674928000,
                    1548770737166864000,
                    1548770757934666800,
                    1548770775252030700,
                    1548770794638017800,
                    1548770815551938800,
                    1548770834616155600,
                    1548770854594872600,
                    1548770877266070000,
                    1548770899300212700,
                    1548770922229096400,
                    1548770944519160600,
                    1548770966524967000,
                    1548770991175950800,
                    1548771014487278300,
                    1548771039452722000,
                    1548771064442207500,
                    1548771088662137600,
                    1548771114402036000,
                    1548771139493572400,
                    1548771164380947700,
                    1548771190643361000,
                    1548771217259113700,
                    1548771244317900500,
                    1548771274282870500,
                    1548771303373115600,
                    1548771331521851100,
                    1548771362027343600,
                    1548771392057917400,
                    1548771422457756700,
                    1548771452947310000,
                    1548771484135008800,
                    1548771514121404400,
                    1548771547562949400,
                    1548771580511023000,
                    1548771614055373800,
                    1548771648005372700,
                    1548771679049281800,
                    1548771713982855000,
                    1548771750853510700,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                ],
                "PauseNs": [
                    458980,
                    301733,
                    127114,
                    3874883,
                    159708,
                    126020,
                    126166,
                    131653,
                    103827,
                    2193721,
                    112333,
                    414635,
                    130354,
                    483050,
                    126650,
                    150304,
                    7537934,
                    261215,
                    177228,
                    247308,
                    210217,
                    110359,
                    257047,
                    148272,
                    147739,
                    111328,
                    209884,
                    270037,
                    105238,
                    1560299,
                    5714928,
                    478890,
                    157635,
                    425186,
                    184394,
                    149171,
                    180842,
                    412810,
                    297492,
                    300551,
                    3122015,
                    2417008,
                    187108,
                    811863,
                    267287,
                    102655,
                    139535,
                    141872,
                    178276,
                    172814,
                    193132,
                    196409,
                    859709,
                    210202,
                    117229,
                    123148,
                    1573929,
                    750539,
                    121400,
                    4315807,
                    2422124,
                    116729,
                    322386,
                    1044798,
                    472123,
                    504382,
                    2871295,
                    129073,
                    228562,
                    197908,
                    239351,
                    119675,
                    227548,
                    586891,
                    964159,
                    2978024,
                    96146,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                ],
                "PauseTotalNs": 58200246,
                "StackInuse": 950272,
                "StackSys": 950272,
                "Sys": 27908344,
                "TotalAlloc": 457571144
            },
            "metricbeat.system.cpu.events": 154,
            "metricbeat.system.cpu.failures": 0,
            "metricbeat.system.cpu.success": 154,
            "metricbeat.system.filesystem.events": 26,
            "metricbeat.system.filesystem.failures": 0,
            "metricbeat.system.filesystem.success": 26,
            "metricbeat.system.fsstat.events": 26,
            "metricbeat.system.fsstat.failures": 0,
            "metricbeat.system.fsstat.success": 26,
            "metricbeat.system.load.events": 154,
            "metricbeat.system.load.failures": 0,
            "metricbeat.system.load.success": 154,
            "metricbeat.system.memory.events": 154,
            "metricbeat.system.memory.failures": 0,
            "metricbeat.system.memory.success": 154,
            "metricbeat.system.network.events": 616,
            "metricbeat.system.network.failures": 0,
            "metricbeat.system.network.success": 616,
            "metricbeat.system.process.events": 163,
            "metricbeat.system.process.failures": 0,
            "metricbeat.system.process.success": 163,
            "metricbeat.system.process_summary.events": 154,
            "metricbeat.system.process_summary.failures": 0,
            "metricbeat.system.process_summary.success": 154,
            "metricbeat.system.uptime.events": 2,
            "metricbeat.system.uptime.failures": 0,
            "metricbeat.system.uptime.success": 2,
            "system.cpu.cores": 4,
            "system.load.1": 0.88,
            "system.load.15": 1.69,
            "system.load.5": 1.07,
            "system.load.norm.1": 0.22,
            "system.load.norm.15": 0.4225,
            "system.load.norm.5": 0.2675
        }
    },
    "metricset": {
        "name": "expvar"
    },
    "service": {
        "address": "127.0.0.1:6060",
        "type": "golang"
    }
}