|
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | + * contributor license agreements. See the NOTICE file distributed with |
| 4 | + * this work for additional information regarding copyright ownership. |
| 5 | + * The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | + * (the "License"); you may not use this file except in compliance with |
| 7 | + * the License. You may obtain a copy of the License at |
| 8 | + * |
| 9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + * |
| 11 | + * Unless required by applicable law or agreed to in writing, software |
| 12 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + * See the License for the specific language governing permissions and |
| 15 | + * limitations under the License. |
| 16 | + */ |
| 17 | + |
| 18 | +package org.apache.eventmesh.common; |
| 19 | + |
| 20 | + |
| 21 | +public class MetricsConstants { |
| 22 | + |
| 23 | + private MetricsConstants() { |
| 24 | + |
| 25 | + } |
| 26 | + |
| 27 | + public static final String UNKOWN = "unkown"; |
| 28 | + |
| 29 | + public static final String LABEL_PROCESSOR = "processor"; |
| 30 | + |
| 31 | + public static final String CLIENT_ADDRESS = "client.address"; |
| 32 | + |
| 33 | + public static final String RPC_SYSTEM = "rpc.system"; |
| 34 | + |
| 35 | + public static final String RPC_SERVICE = "rpc.service"; |
| 36 | + |
| 37 | + //GRPC-https://opentelemetry.io/docs/reference/specification/metrics/semantic_conventions/rpc-metrics/ |
| 38 | + public static final String GRPC_NET_PEER_PORT = "net.peer.port"; |
| 39 | + |
| 40 | + public static final String GRPC_NET_PEER_NAME = "net.peer.name"; |
| 41 | + |
| 42 | + public static final String GRPC_NET_SOCK_PEER_ADDR = "net.sock.peer.addr"; |
| 43 | + |
| 44 | + public static final String GRPC_NET_SOCK_PEER_PORT = "net.sock.peer.port"; |
| 45 | + |
| 46 | + // HTTP https://opentelemetry.io/docs/reference/specification/metrics/semantic_conventions/http-metrics/ |
| 47 | + |
| 48 | + public static final String HTTP_HTTP_SCHEME = "http.scheme"; |
| 49 | + |
| 50 | + public static final String HTTP_HTTP_FLAVOR = "http.flavor"; |
| 51 | + |
| 52 | + public static final String HTTP_NET_HOST_NAME = "net.host.name"; |
| 53 | + |
| 54 | + public static final String HTTP_NET_HOST_PORT = "net.host.port"; |
| 55 | + |
| 56 | + //TCP |
| 57 | + public static final String TCP_NET_HOST_NAME = "net.host.name"; |
| 58 | + |
| 59 | + public static final String TCP_NET_HOST_PORT = "net.host.port"; |
| 60 | + |
| 61 | + |
| 62 | + public static final String CLIENT_PROTOCOL_TYPE = "client.protocol.type"; |
| 63 | + |
| 64 | + |
| 65 | +} |
0 commit comments