Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MkrMetricValueString ¶
func MkrMetricValueString(v *mackerel.MetricValue) string
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(config AgentConfig) Agent
func (*Agent) RegisterMetricSource ¶
func (app *Agent) RegisterMetricSource(target MetricsSource) error
func (Agent) ThrowMetricValues ¶
func (app Agent) ThrowMetricValues(ctx context.Context, values []*MetricValue) error
type AgentConfig ¶
type MetricValue ¶
type MetricsSource ¶
type MetricsSource interface { String() string FetchMetrics(context.Context) ([]*MetricValue, error) }
Click to show internal directories.
Click to hide internal directories.