UNPKG

@voicenter-team/mysql-dynamic-cluster

Version:

Galera cluster with implementation of dynamic choose mysql server for queries, caching, hashing it and metrics

96 lines (95 loc) 2.13 kB
/** * Created by Bohdan on Sep, 2021 */ import { MetricType } from "../types/MetricsInterfaces"; /** * All metric names used in the program. Structure: * { * (group name): { * (metric name): <Metric> { * key: string, * name?: string, * type: MetricType * } * } * } * * Metric types: * COUNTER - Things that increment or decrement * METER - Things that are measured as events / interval * METRIC - Values that can be read instantly */ declare const MetricNames: { cluster: { allQueries: { key: string; name: string; type: MetricType; }; successfulQueries: { key: string; name: string; type: MetricType; }; errorQueries: { key: string; name: string; type: MetricType; }; queryTime: { key: string; name: string; type: MetricType; }; queryPerMinute: { key: string; name: string; type: MetricType; }; }; pool: { allQueries: { key: string; name: string; type: MetricType; }; successfulQueries: { key: string; name: string; type: MetricType; }; errorQueries: { key: string; name: string; type: MetricType; }; queryTime: { key: string; name: string; type: MetricType; }; queryPerMinute: { key: string; name: string; type: MetricType; }; }; redis: { uses: { key: string; name: string; type: MetricType; }; expired: { key: string; name: string; type: MetricType; }; latency: { key: string; name: string; type: MetricType; }; }; }; export default MetricNames;