apm

package
v0.0.0-...-f8a34bb Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type ExtConfig

type ExtConfig struct {
	Groups        []transit.ResourceGroup   `json:"groups"`
	Resources     []Resource                `json:"resources"`
	Services      []string                  `json:"services"`
	CheckInterval time.Duration             `json:"checkIntervalMinutes"`
	Ownership     transit.HostOwnershipType `json:"ownership,omitempty"`
}

ExtConfig defines the MonitorConnection extensions configuration

func (*ExtConfig) UnmarshalJSON

func (cfg *ExtConfig) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type PromParser

type PromParser struct {
	DefaultTags map[string]string
}

func (*PromParser) Parse

func (p *PromParser) Parse(buf []byte, withFilters bool, resource string) (map[string]*dto.MetricFamily, error)

type Resource

type Resource struct {
	Headers          map[string]string `json:"headers"`
	URL              string            `json:"url"`
	DefaultHost      string            `json:"defaultHost"`
	DefaultHostGroup string            `json:"defaultHostGroup"`
}

Resource defines APM Source

func (*Resource) UnmarshalJSON

func (resource *Resource) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

Jump to

Keyboard shortcuts

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