Documentation ¶
Overview ¶
Package metrics contains all the code that is used to collect metrics from the target
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateDatabaseMetrics ¶
func PopulateDatabaseMetrics(i *integration.Integration, instanceName string, connection *connection.SQLConnection, arguments args.ArgumentList) error
PopulateDatabaseMetrics collects per-database metrics
func PopulateInstanceMetrics ¶
func PopulateInstanceMetrics(instanceEntity *integration.Entity, connection *connection.SQLConnection, arguments args.ArgumentList)
PopulateInstanceMetrics creates instance-level metrics
Types ¶
type QueryDefinition ¶
type QueryDefinition struct {
// contains filtered or unexported fields
}
QueryDefinition defines a single query with it's associated data model which has struct tags for metric.Set
func (QueryDefinition) GetDataModels ¶
func (qd QueryDefinition) GetDataModels() interface{}
GetDataModels retrieves the DataModels to be passed to the sqlx call for results to be martialed into
func (QueryDefinition) GetQuery ¶
func (qd QueryDefinition) GetQuery(modifiers ...QueryModifier) string
GetQuery retrieves the query for a QueryDefinition
type QueryModifier ¶
QueryModifier is a function that takes in a query, does any modification and returns the query
Click to show internal directories.
Click to hide internal directories.