github.com/netdata/go.d.plugin@v0.58.1/modules/energid/charts.go (about) 1 // SPDX-License-Identifier: GPL-3.0-or-later 2 3 package energid 4 5 import "github.com/netdata/go.d.plugin/agent/module" 6 7 var charts = module.Charts{ 8 // getblockchaininfo (blockchain processing) 9 { 10 ID: "blockindex", 11 Title: "Blockchain index", 12 Units: "count", 13 Fam: "blockchain", 14 Ctx: "energid.blockindex", 15 Type: module.Area, 16 Dims: module.Dims{ 17 {ID: "blockchain_blocks", Name: "blocks"}, 18 {ID: "blockchain_headers", Name: "headers"}, 19 }, 20 }, 21 { 22 ID: "difficulty", 23 Title: "Blockchain difficulty", 24 Units: "difficulty", 25 Fam: "blockchain", 26 Ctx: "energid.difficulty", 27 Dims: module.Dims{ 28 {ID: "blockchain_difficulty", Name: "difficulty", Div: 1000}, 29 }, 30 }, 31 32 // getmempoolinfo (state of the TX memory pool) 33 { 34 ID: "mempool", 35 Title: "Memory pool", 36 Units: "bytes", 37 Fam: "memory", 38 Ctx: "energid.mempool", 39 Type: module.Area, 40 Dims: module.Dims{ 41 {ID: "mempool_max", Name: "max"}, 42 {ID: "mempool_current", Name: "usage"}, 43 {ID: "mempool_txsize", Name: "tx_size"}, 44 }, 45 }, 46 47 // getmemoryinfo 48 { 49 ID: "secmem", 50 Title: "Secure memory", 51 Units: "bytes", 52 Fam: "memory", 53 Ctx: "energid.secmem", 54 Type: module.Area, 55 Dims: module.Dims{ 56 {ID: "secmem_total", Name: "total"}, 57 {ID: "secmem_used", Name: "used"}, 58 {ID: "secmem_free", Name: "free"}, 59 {ID: "secmem_locked", Name: "locked"}, 60 }, 61 }, 62 63 // getnetworkinfo (P2P networking) 64 { 65 ID: "network", 66 Title: "Network", 67 Units: "connections", 68 Fam: "network", 69 Ctx: "energid.network", 70 Dims: module.Dims{ 71 {ID: "network_connections", Name: "connections"}, 72 }, 73 }, 74 { 75 ID: "timeoffset", 76 Title: "Network time offset", 77 Units: "seconds", 78 Fam: "network", 79 Ctx: "energid.timeoffset", 80 Dims: module.Dims{ 81 {ID: "network_timeoffset", Name: "timeoffset"}, 82 }, 83 }, 84 85 // gettxoutsetinfo (unspent transaction output set) 86 { 87 ID: "utxo_transactions", 88 Title: "Transactions", 89 Units: "transactions", 90 Fam: "utxo", 91 Ctx: "energid.utxo_transactions", 92 Dims: module.Dims{ 93 {ID: "utxo_transactions", Name: "transactions"}, 94 {ID: "utxo_output_transactions", Name: "output_transactions"}, 95 }, 96 }, 97 }