collector

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

mackerel-sql-metric-collector

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

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

Collector represents ...

func NewCollector

func NewCollector(conf *Config, exporter exporter.Exporter, logger logr.Logger) (*Collector, error)

NewCollector is ...

func (*Collector) Run

func (c *Collector) Run(queries []query.Query) error

Run collect and post metrics.

func (*Collector) RunWithContext

func (c *Collector) RunWithContext(ctx context.Context, queries []query.Query) error

RunWithContext collect and post metrics with context.Context.

type Config

type Config struct {
	DSN            string
	DefaultService string
	MaxConcurrency int
}

Config represents collector configuration.

Directories

Path Synopsis
cmd
mackerel-sql-metric-collector/fetcher
Package fetcher provides functions to retrieve a string from arbitary URL.
Package fetcher provides functions to retrieve a string from arbitary URL.
mackerel-sql-metric-collector/option
Package option contains options for the SQL Metric Collector handler.
Package option contains options for the SQL Metric Collector handler.

Jump to

Keyboard shortcuts

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