energid

package
v0.0.0-...-6ade924 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

README

Energi Core Wallet monitoring with Netdata

This module monitors one or more Energi Core Wallet instances, depending on your configuration.

Requirements

Works only with Generation 2 wallets.

Metrics

All metrics have "energid." prefix.

Metric Scope Dimensions Units
blockindex global blocks, headers count
difficulty global difficulty difficulty
mempool global max, usage, tx_size bytes
secmem global total, used, free, locked bytes
network global connections connections
timeoffset global timeoffset seconds
utxo_transactions global transactions, output_transactions transactions

Configuration

Edit the go.d/energid.conf configuration file using edit-config from the Netdata config directory, which is typically at /etc/netdata.

cd /etc/netdata # Replace this path with your Netdata config directory
sudo ./edit-config go.d/energid.conf

Needs url, username and password. Here is an example with two jobs:

jobs:
  - name: local
    url: 'http://127.0.0.1:9796'
    username: 'netdata'
    password: 'netdata'

  - name: remote
    url: 'http://203.0.113.0:9796'
    username: 'netdata'
    password: 'netdata'

For all available options, see the energid collector's configuration file.

Troubleshooting

To troubleshoot issues with the energid collector, run the go.d.plugin with the debug option enabled. The output should give you clues as to why the collector isn't working.

  • Navigate to the plugins.d directory, usually at /usr/libexec/netdata/plugins.d/. If that's not the case on your system, open netdata.conf and look for the plugins setting under [directories].

    cd /usr/libexec/netdata/plugins.d/
    
  • Switch to the netdata user.

    sudo -u netdata -s
    
  • Run the go.d.plugin to debug the collector:

    ./go.d.plugin -d -m energid
    

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	web.HTTP `yaml:",inline"`
}

type Energid

type Energid struct {
	module.Base
	Config `yaml:",inline"`
	// contains filtered or unexported fields
}

func New

func New() *Energid

func (*Energid) Charts

func (e *Energid) Charts() *module.Charts

func (*Energid) Check

func (e *Energid) Check() bool

func (*Energid) Cleanup

func (e *Energid) Cleanup()

func (*Energid) Collect

func (e *Energid) Collect() map[string]int64

func (*Energid) Init

func (e *Energid) Init() bool

Jump to

Keyboard shortcuts

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