Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame^] | 1 | """ |
| 2 | Copyright 2020 The Magma Authors. |
| 3 | |
| 4 | This source code is licensed under the BSD-style license found in the |
| 5 | LICENSE file in the root directory of this source tree. |
| 6 | |
| 7 | Unless required by applicable law or agreed to in writing, software |
| 8 | distributed under the License is distributed on an "AS IS" BASIS, |
| 9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 10 | See the License for the specific language governing permissions and |
| 11 | limitations under the License. |
| 12 | """ |
| 13 | from prometheus_client import Counter |
| 14 | |
| 15 | STREAMER_RESPONSES = Counter( |
| 16 | 'streamer_responses', |
| 17 | 'The number of responses by label', |
| 18 | ['result'], |
| 19 | ) |
| 20 | |
| 21 | SERVICE_ERRORS = Counter( |
| 22 | 'service_errors', |
| 23 | 'The number of errors logged', |
| 24 | ) |