common

package
v0.0.0-...-417b102 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PushgatewayURL string = os.Getenv("PUSHGATEWAY_URL")

Functions

func GetGauges

func GetGauges(parserKey string, instance string, podName string, values map[string]interface{}) []prometheus.Gauge

func GetLog

func GetLog(c *COSObject, keyName string) (b []byte, err error)

func PushValues

func PushValues(parserKey string, clusterID string, instance string, benchmarkName string, jobName string, podName string, const_labels map[string]string, values map[string]interface{}) error

func PutLog

func PutLog(c *COSObject, keyName string, podLogs []byte) error

Types

type COSObject

type COSObject struct {
	RawBucketName     string
	APIKey            string
	ServiceInstanceID string
	AuthEndpoint      string
	ServiceEndpoint   string
}

func NewCOS

func NewCOS() *COSObject

func (*COSObject) InitValue

func (c *COSObject) InitValue()

Jump to

Keyboard shortcuts

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