Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Log = logger.New(logrus.StandardLogger(), "metrics")
)
Functions ¶
func Start ¶
\param port port where the scraping endpoint will be created \param endpointName name of the endpoint, which must start with a slash eg. "/internalmetrics" \param messageBufferSize size of buffer for messages where messages are kept between scraping request.
If we attempt send more messages than the size of the buffer, these overflowing messages will be ignored and warning will be logged.
Types ¶
type Metric ¶
type Metric struct { Name string `json:"name"` Values ValuesType `json:"values"` Tags TagsType `json:"tags,omitempty"` Timestamp int64 `json:"timestamp"` }
type ValuesType ¶
Click to show internal directories.
Click to hide internal directories.