Documentation ¶
Index ¶
Constants ¶
View Source
const ChunkSize = 10
Chunk size of metric requests
View Source
const UserAgent = "Prometheus-NewRelic-Exporter/" + Version
User-Agent string
View Source
const Version = "0.4b"
Module version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Period int // contains filtered or unexported fields }
func (*API) GetApplications ¶
func (api *API) GetApplications() ([]Application, error)
func (*API) GetMetricData ¶
func (api *API) GetMetricData(appId int, names []MetricName, from time.Time, to time.Time) ([]MetricData, error)
func (*API) GetMetricNames ¶
func (api *API) GetMetricNames(appID int) ([]MetricName, error)
type Application ¶
type MetricData ¶
type MetricName ¶
Click to show internal directories.
Click to hide internal directories.