Wei-Yu Chen | ad55cb8 | 2022-02-15 20:07:01 +0800 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2020 The Magma Authors. |
| 2 | # SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org> |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 5 | |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 6 | from prometheus_client import Counter |
| 7 | |
| 8 | STREAMER_RESPONSES = Counter( |
| 9 | 'streamer_responses', |
| 10 | 'The number of responses by label', |
| 11 | ['result'], |
| 12 | ) |
| 13 | |
| 14 | SERVICE_ERRORS = Counter( |
| 15 | 'service_errors', |
| 16 | 'The number of errors logged', |
| 17 | ) |