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 ¶
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"` }
Click to show internal directories.
Click to hide internal directories.