pusher

package
v0.0.0-...-7c2d819 Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package pusher provides functionality for parsing and pushing metrics to prometheus

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsakaLogType

type AsakaLogType int
const (
	MONITOR_API AsakaLogType
	MONITOR_KERNEL
)

type GPUMetaLogType

type GPUMetaLogType int
const (
	GPU_UTIL GPUMetaLogType
	GPU_MEMORY
	GPU_TEMPERATURE
	PCIE_BW_RX
	PCIE_BW_TX
)

type Pusher

type Pusher interface {
	// Start a new pusher and by providing a datasource channel
	Start(chan string) error
	// Stop the pusher
	Stop() error
}

Pusher is the common interface defining how to consume data from a datasource

func NewAsaka

func NewAsaka(conf string) (Pusher, error)

func NewGPUMeta

func NewGPUMeta(conf string) (Pusher, error)

Jump to

Keyboard shortcuts

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