exporter

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PROJECT string = "acs_slb_dashboard"

Variables

View Source
var Layer4And7Metrics = map[string]string{

	"HeathyServerCount":          "heathy_server_count",
	"UnhealthyServerCount":       "unhealthy_server_count",
	"PacketTX":                   "packet_tx",
	"PacketRX":                   "packet_rx",
	"TrafficRXNew":               "traffic_rx_new",
	"TrafficTXNew":               "traffic_tx_new",
	"ActiveConnection":           "active_connection",
	"InactiveConnection":         "inactive_connection",
	"NewConnection":              "new_connection",
	"MaxConnection":              "max_connection",
	"DropConnection":             "drop_connection",
	"DropPacketRX":               "drop_packet_rx",
	"DropPacketTX":               "drop_packet_tx",
	"DropTrafficRX":              "drop_traffic_rx",
	"DropTrafficTX":              "drop_traffic_tx",
	"InstanceActiveConnection":   "instance_active_connection",
	"InstanceDropConnection":     "instance_drop_connection",
	"InstanceDropPacketRX":       "instance_drop_packet_rx",
	"InstanceDropPacketTX":       "instance_drop_packet_tx",
	"InstanceDropTrafficRX":      "instance_drop_traffic_rx",
	"InstanceDropTrafficTX":      "instance_drop_traffic_tx",
	"InstanceInactiveConnection": "instance_inactive_connection",
	"InstanceMaxConnection":      "instance_max_connection",
	"InstanceNewConnection":      "instance_new_connection",
	"InstancePacketRX":           "instance_packet_rx",
	"InstancePacketTX":           "instance_packet_tx",
	"InstanceTrafficRX":          "instance_traffic_rx",
	"InstanceTrafficTX":          "instacne_traffic_tx",

	"Qps":                     "qps",
	"Rt":                      "rt",
	"StatusCode2xx":           "status_code_2xx",
	"StatusCode3xx":           "status_code_3xx",
	"StatusCode4xx":           "status_code_4xx",
	"StatusCode5xx":           "status_code_5xx",
	"StatusCodeOther":         "status_code_other",
	"UpstreamCode4xx":         "upstream_code_4xx",
	"UpstreamCode5xx":         "upstream_code_5xx",
	"UpstreamRt":              "upstream_rt",
	"InstanceQps":             "instance_qps",
	"InstanceRt":              "instance_rt",
	"InstanceStatusCode2xx":   "instance_status_code_2xx",
	"InstanceStatusCode3xx":   "instance_status_code_3xx",
	"InstanceStatusCode4xx":   "instance_status_code_4xx",
	"InstanceStatusCode5xx":   "instance_status_code_5xx",
	"InstanceStatusCodeOther": "instance_status_code_other",
	"InstanceUpstreamCode4xx": "instance_upstream_code_4xx",
	"InstanceUpstreamCode5xx": "instance_upstream_code_5xx",
	"InstanceUpstreamRt":      "instance_upstream_rt",
}

Functions

This section is empty.

Types

type SlbExporter

type SlbExporter struct {
	DataPoints []struct {
		InstanceId string  `json:"instanceId"`
		Port       string  `json:"port,omitempty"`
		Protocol   string  `json:"protocol,omitempty"`
		Vip        string  `json:"vip,omitempty"`
		Average    float64 `json:"Average"`
	}
	// contains filtered or unexported fields
}

func (*SlbExporter) Collect

func (s *SlbExporter) Collect(ch chan<- prometheus.Metric)

func (*SlbExporter) Describe

func (s *SlbExporter) Describe(ch chan<- *prometheus.Desc)

func (*SlbExporter) GetInstance

func (s *SlbExporter) GetInstance()

func (*SlbExporter) GetMetric

func (s *SlbExporter) GetMetric(metricName string)

func (*SlbExporter) InitGauge

func (s *SlbExporter) InitGauge()

func (*SlbExporter) NewClient

func (s *SlbExporter) NewClient()

Jump to

Keyboard shortcuts

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