@terascope/types / terafoundation / PromMetrics
Interface: PromMetrics
Defined in: packages/types/src/terafoundation.ts:192
Properties
Property | Type | Defined in |
---|---|---|
addCounter | (name : string , help : string , labelNames : string [], collectFn ?: CollectFunction <Counter <string >>) => Promise <void > | packages/types/src/terafoundation.ts:200 |
addGauge | (name : string , help : string , labelNames : string [], collectFn ?: CollectFunction <Gauge <string >>) => Promise <void > | packages/types/src/terafoundation.ts:198 |
addHistogram | (name : string , help : string , labelNames : string [], collectFn ?: CollectFunction <Histogram <string >>, buckets ?: number []) => Promise <void > | packages/types/src/terafoundation.ts:202 |
addSummary | (name : string , help : string , labelNames : string [], collectFn ?: CollectFunction <Summary <string >>, maxAgeSeconds ?: number , ageBuckets ?: number , percentiles ?: number []) => Promise <void > | packages/types/src/terafoundation.ts:204 |
dec | (name : string , labelValues : Record <string , string >, value : number ) => void | packages/types/src/terafoundation.ts:196 |
deleteMetric | (name : string ) => Promise <boolean > | packages/types/src/terafoundation.ts:208 |
getDefaultLabels | () => Record <string , string > | packages/types/src/terafoundation.ts:212 |
hasMetric | (name : string ) => boolean | packages/types/src/terafoundation.ts:207 |
inc | (name : string , labelValues : Record <string , string >, value : number ) => void | packages/types/src/terafoundation.ts:195 |
init | (config : PromMetricsInitConfig ) => Promise <boolean > | packages/types/src/terafoundation.ts:193 |
observe | (name : string , labelValues : Record <string , string >, value : number ) => void | packages/types/src/terafoundation.ts:197 |
resetMetrics | () => void | packages/types/src/terafoundation.ts:210 |
set | (name : string , labels : Record <string , string >, value : number ) => void | packages/types/src/terafoundation.ts:194 |
shutdown | () => Promise <void > | packages/types/src/terafoundation.ts:211 |
verifyAPI | () => boolean | packages/types/src/terafoundation.ts:209 |