Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PerfDbOperation is perf metric PerfDbOperation = metrics.Describe{ Type: metrics.TypeSample, Name: "perf_db_query", Help: "perf_db_query provides the sample metrics of db query", RequiredTags: []string{"method"}, } // PerfTaskRun is perf metric PerfTaskRun = metrics.Describe{ Type: metrics.TypeSample, Name: "perf_task_run", Help: "perf_task_run provides the sample metrics of task run", RequiredTags: []string{"task"}, } // PerfMethodRun is perf metric PerfMethodRun = metrics.Describe{ Type: metrics.TypeSample, Name: "perf_method_run", Help: "perf_method_run provides the sample metrics of method run", RequiredTags: []string{"pkg", "method"}, } )
Perf
View Source
var ( // StatsDbTableRowsTotal is base for gauge metric for total rows in a table StatsDbTableRowsTotal = metrics.Describe{ Type: metrics.TypeGauge, Name: "stats_table_rows", Help: "provides total rows in a table", RequiredTags: []string{"table"}, } StatsDbQueryCount = metrics.Describe{ Type: metrics.TypeCounter, Name: "stats_db_query_count", Help: "stats_db_query_count provides counter of DB queries", RequiredTags: []string{"method"}, } )
Stats
View Source
var Metrics = []*metrics.Describe{ &PerfDbOperation, &PerfMethodRun, &PerfTaskRun, &StatsDbTableRowsTotal, &StatsDbQueryCount, }
Metrics provides the list of emitted metrics by this repo
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.