metric

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PoolInUseConnectionsGauge = "pool_in_use_connections"
	SQLDurationSeconds        = "sql_duration_seconds"
	SQLQuerySuccessCounter    = "sql_query_success_count"
	SQLQueryFailureCounter    = "sql_query_failure_count"
	SQLInsertedRecordsCounter = "sql_inserted_rows_count"
	SQLReadRecordsCounter     = "sql_read_rows_count"
	SQLDeletedRecordsCounter  = "sql_deleted_rows_count"
)

Generic Metrics

View Source
const (
	CapacityUnitConsumedCounter  = "capacity_unit_consumed"
	ReadCapacityConsumedCounter  = "read_capacity_unit_consumed"
	WriteCapacityConsumedCounter = "write_capacity_unit_consumed"
)

DynamoDB metrics

Variables

This section is empty.

Functions

func ProvideMetrics

func ProvideMetrics() fx.Option

Metrics returns the Metrics relevant to this package

Types

type Measures

type Measures struct {
	fx.In
	PoolInUseConnections metrics.Gauge     `name:"pool_in_use_connections"`
	SQLDuration          metrics.Histogram `name:"sql_duration_seconds"`
	SQLQuerySuccessCount metrics.Counter   `name:"sql_query_success_count"`
	SQLQueryFailureCount metrics.Counter   `name:"sql_query_failure_count"`
	SQLInsertedRecords   metrics.Counter   `name:"sql_inserted_rows_count"`
	SQLReadRecords       metrics.Counter   `name:"sql_read_rows_count"`
	SQLDeletedRecords    metrics.Counter   `name:"sql_deleted_rows_count"`

	// DynamoDB Metrics
	CapacityUnitConsumedCount      metrics.Counter `name:"capacity_unit_consumed"`
	ReadCapacityUnitConsumedCount  metrics.Counter `name:"read_capacity_unit_consumed"`
	WriteCapacityUnitConsumedCount metrics.Counter `name:"write_capacity_unit_consumed"`
}

Jump to

Keyboard shortcuts

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