UNPKG

@substrate/api-sidecar

Version:

REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.

85 lines 3.32 kB
"use strict"; // Copyright 2022-2025 Parity Technologies (UK) Ltd. // This file is part of Substrate API Sidecar. // // Substrate API Sidecar is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. Object.defineProperty(exports, "__esModule", { value: true }); exports.metric_list = void 0; exports.metric_list = [ { name: 'http_request_error', help: 'Number of HTTP Errors', type: "counter" /* MetricType.Counter */, }, { name: 'http_request_success', help: 'Number of HTTP Success', type: "counter" /* MetricType.Counter */, }, { name: 'http_requests', help: 'Total number of HTTP Requests', type: "counter" /* MetricType.Counter */, }, { name: 'request_duration_seconds', help: 'Duration of HTTP requests in seconds', labels: ['method', 'route', 'status_code'], buckets: [0.1, 0.5, 1, 1.5, 2, 3, 4, 5], type: "histogram" /* MetricType.Histogram */, }, { name: 'response_size_bytes', help: 'Size of HTTP responses in bytes', labels: ['method', 'route', 'status_code'], buckets: [100, 500, 1000, 5000, 10000, 50000, 100000, 500000, 1000000, 5000000], type: "histogram" /* MetricType.Histogram */, }, { name: 'response_size_bytes_seconds', help: 'Ratio of response size to latency', labels: ['method', 'route', 'status_code'], buckets: [64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144], type: "histogram" /* MetricType.Histogram */, }, { name: 'extrinsics_in_request', help: 'Number of extrinsics in a request', type: "histogram" /* MetricType.Histogram */, buckets: [5, 10, 20, 40, 80, 160, 320, 640, 1280, 2560, 5120, 10240, 20480], labels: ['method', 'route', 'status_code'], }, { name: 'extrinsics_per_second', help: 'Number of extrinsics per second', type: "histogram" /* MetricType.Histogram */, labels: ['method', 'route', 'status_code'], buckets: [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024], }, { name: 'extrinsics_per_block', help: 'Average number of extrinsics per block', type: "histogram" /* MetricType.Histogram */, labels: ['method', 'route', 'status_code'], buckets: [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024], }, { name: 'seconds_per_block', help: 'Average seconds per block', type: "histogram" /* MetricType.Histogram */, labels: ['method', 'route', 'status_code'], buckets: [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024], }, ]; //# sourceMappingURL=config.js.map