consul

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: GPL-3.0 Imports: 9 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

consul

This module will monitor consul health checks.

It produces the following charts:

  1. Service Checks in status
  • check id
  1. Unbound Checks in status
  • check id
configuration

Here is an example for 2 servers:

jobs:
  - name: local
    url : http://127.0.0.1:8500
      
  - name: remote
    url : http://100.64.0.1:8500

Without configuration, module attempts to connect to http://127.0.0.1:8500


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart = module.Chart

Chart is an alias for module.Chart

type Charts

type Charts = module.Charts

Charts is an alias for module.Charts

type Consul

type Consul struct {
	module.Base

	web.HTTP `yaml:",inline"`

	ACLToken     string `yaml:"acl_token"`
	MaxChecks    int    `yaml:"max_checks"`
	ChecksFilter string `yaml:"checks_filter"`
	// contains filtered or unexported fields
}

Consul Consul module.

func New

func New() *Consul

New creates Consul with default values.

func (Consul) Charts

func (c Consul) Charts() *Charts

Charts creates Charts.

func (*Consul) Check

func (c *Consul) Check() bool

Check makes check.

func (Consul) Cleanup

func (Consul) Cleanup()

Cleanup makes cleanup.

func (*Consul) Collect

func (c *Consul) Collect() map[string]int64

Collect collects metrics.

func (*Consul) Init

func (c *Consul) Init() bool

Init makes initialization.

type Dim

type Dim = module.Dim

Dim is an alias for module.Dim

Jump to

Keyboard shortcuts

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