exporter

package module
v0.0.0-...-e7d7e86 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 4 Imported by: 0

README

Cert monitoring exporter

CircleCI Go Report Card GoDoc GitHub license

Motivations

Push custom certificate metrics to prometheus push gateway. This can be deployed to lambda or kubernetes.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a struct for push gateway operations

func New

func New() (*Client, error)

New creates a Client for pushgateway operations and returns an error if pushgateway environment variable is not Set properly.

func (*Client) Delete

func (p *Client) Delete() error

Delete deletes the metric to prometheus push gateway

func (*Client) Push

func (p *Client) Push() error

Push pushes the metric to prometheus push gateway

func (*Client) SetGroupingKey

func (p *Client) SetGroupingKey(groupingKey string) *Client

SetGroupingKey Sets the prometheus grouping key

func (*Client) SetGroupingValue

func (p *Client) SetGroupingValue(groupingValue string) *Client

SetGroupingValue Sets the prometheus grouping value

func (*Client) SetHelp

func (p *Client) SetHelp(help string) *Client

SetHelp Sets the help message of the metric

func (*Client) SetName

func (p *Client) SetName(name string) *Client

SetName Sets the name of the metric

func (*Client) SetValue

func (p *Client) SetValue(value float64) *Client

SetValue Sets the value of the metric to push

Jump to

Keyboard shortcuts

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