github.com/netdata/go.d.plugin@v0.58.1/modules/springboot2/charts.go (about)

     1  // SPDX-License-Identifier: GPL-3.0-or-later
     2  
     3  package springboot2
     4  
     5  import (
     6  	"github.com/netdata/go.d.plugin/agent/module"
     7  )
     8  
     9  type (
    10  	// Charts is an alias for module.Charts
    11  	Charts = module.Charts
    12  	// Dims is an alias for module.Dims
    13  	Dims = module.Dims
    14  )
    15  
    16  var charts = Charts{
    17  	{
    18  		ID:    "response_codes",
    19  		Title: "Response Codes", Units: "requests/s", Fam: "response_code", Type: module.Stacked, Ctx: "springboot2.response_codes",
    20  		Dims: Dims{
    21  			{ID: "resp_2xx", Name: "2xx", Algo: module.Incremental},
    22  			{ID: "resp_5xx", Name: "5xx", Algo: module.Incremental},
    23  			{ID: "resp_3xx", Name: "3xx", Algo: module.Incremental},
    24  			{ID: "resp_4xx", Name: "4xx", Algo: module.Incremental},
    25  			{ID: "resp_1xx", Name: "1xx", Algo: module.Incremental},
    26  		},
    27  	},
    28  	{
    29  		ID:    "thread",
    30  		Title: "Threads", Units: "threads", Fam: "threads", Type: module.Area, Ctx: "springboot2.thread",
    31  		Dims: Dims{
    32  			{ID: "threads_daemon", Name: "daemon"},
    33  			{ID: "threads", Name: "total"},
    34  		},
    35  	},
    36  	{
    37  		ID:    "heap",
    38  		Title: "Overview", Units: "B", Fam: "heap", Type: module.Stacked, Ctx: "springboot2.heap",
    39  		Dims: Dims{
    40  			{ID: "mem_free", Name: "free"},
    41  			{ID: "heap_used_eden", Name: "eden"},
    42  			{ID: "heap_used_survivor", Name: "survivor"},
    43  			{ID: "heap_used_old", Name: "old"},
    44  		},
    45  	},
    46  	{
    47  		ID:    "heap_eden",
    48  		Title: "Eden Space", Units: "B", Fam: "heap", Type: module.Area, Ctx: "springboot2.heap_eden",
    49  		Dims: Dims{
    50  			{ID: "heap_used_eden", Name: "used"},
    51  			{ID: "heap_committed_eden", Name: "committed"},
    52  		},
    53  	},
    54  	{
    55  		ID:    "heap_survivor",
    56  		Title: "Survivor Space", Units: "B", Fam: "heap", Type: module.Area, Ctx: "springboot2.heap_survivor",
    57  		Dims: Dims{
    58  			{ID: "heap_used_survivor", Name: "used"},
    59  			{ID: "heap_committed_survivor", Name: "committed"},
    60  		},
    61  	},
    62  	{
    63  		ID:    "heap_old",
    64  		Title: "Old Space", Units: "B", Fam: "heap", Type: module.Area, Ctx: "springboot2.heap_old",
    65  		Dims: Dims{
    66  			{ID: "heap_used_old", Name: "used"},
    67  			{ID: "heap_committed_old", Name: "committed"},
    68  		},
    69  	},
    70  	{
    71  		ID:    "uptime",
    72  		Title: "The uptime of the Java virtual machine", Units: "seconds", Fam: "uptime", Type: module.Line, Ctx: "springboot2.uptime",
    73  		Dims: Dims{
    74  			{ID: "uptime", Name: "uptime", Div: 1000},
    75  		},
    76  	},
    77  }