|
| 1 | +<!-- |
| 2 | +Licensed to the Apache Software Foundation (ASF) under one |
| 3 | +or more contributor license agreements. See the NOTICE file |
| 4 | +distributed with this work for additional information |
| 5 | +regarding copyright ownership. The ASF licenses this file |
| 6 | +to you under the Apache License, Version 2.0 (the |
| 7 | +"License"); you may not use this file except in compliance |
| 8 | +with the License. You may obtain a copy of the License at |
| 9 | +
|
| 10 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +
|
| 12 | +Unless required by applicable law or agreed to in writing, |
| 13 | +software distributed under the License is distributed on an |
| 14 | +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | +KIND, either express or implied. See the License for the |
| 16 | +specific language governing permissions and limitations |
| 17 | +under the License. |
| 18 | +--> |
| 19 | + |
| 20 | +## Abstract |
| 21 | +Apache Griffin 2.0 is a new generation of Data Service Platform.Compared to Griffin 1.0, new version aims to provide a |
| 22 | +more decouple service framework, including griffin-connectors, griffin-metric, griffin-dqc, griffin-scheduler. |
| 23 | + |
| 24 | +Here, we will give much more details about griffin-metric. |
| 25 | + |
| 26 | +## Apache Griffin Metric |
| 27 | +http://127.0.0.1:8888/h2-console/login.do?jsessionid=787b7279ce05baa951acf0abfdd60df5 |
| 28 | + |
| 29 | +### |
| 30 | +GET http://localhost:8888/ping |
| 31 | + |
| 32 | +### |
| 33 | +GET http://localhost:8888/allMetricDs |
| 34 | + |
| 35 | +<> 2024-10-09T211552.500.json |
| 36 | +<> 2024-10-09T211458.200.json |
| 37 | +<> 2024-10-09T211446.200.json |
| 38 | +<> 2024-10-09T204950.200.json |
| 39 | +<> 2024-10-09T195018.200.json |
| 40 | +<> 2024-10-08T223000.200.json |
| 41 | +<> 2024-10-08T222937.200.json |
| 42 | +<> 2024-10-08T222713.200.json |
| 43 | +<> 2024-10-08T222237.200.json |
| 44 | + |
| 45 | +### |
| 46 | +PUT http://localhost:8888/metricD |
| 47 | +Content-Type: application/json |
| 48 | + |
| 49 | +{ |
| 50 | +"description": "test metric", |
| 51 | +"metricName": "latency", |
| 52 | +"owner": "admin" |
| 53 | +} |
| 54 | + |
| 55 | +<> 2024-10-14T221213.201.json |
| 56 | +<> 2024-10-14T220832.201.json |
| 57 | +<> 2024-10-14T220539.201.json |
| 58 | +<> 2024-10-14T220401.201.json |
| 59 | +<> 2024-10-14T220108.201.json |
| 60 | +<> 2024-10-14T220024.201.json |
| 61 | +<> 2024-10-14T215934.201.json |
| 62 | +<> 2024-10-14T215227.201.json |
| 63 | +<> 2024-10-14T213212.201.json |
| 64 | +<> 2024-10-10T222838.201.json |
| 65 | +<> 2024-10-09T225958.400.json |
| 66 | +<> 2024-10-09T225404.200.json |
| 67 | +<> 2024-10-09T211450.200.json |
| 68 | +<> 2024-10-09T204917.200.json |
| 69 | +<> 2024-10-08T222650.200.json |
| 70 | +<> 2024-10-08T222209.200.json |
| 71 | +<> 2024-10-08T213859.200.json |
| 72 | +<> 2024-10-08T212816.200.json |
| 73 | +<> 2024-10-08T212648.200.json |
| 74 | + |
| 75 | +### |
| 76 | +PUT http://localhost:8888/metricV |
| 77 | +Content-Type: application/json |
| 78 | + |
| 79 | +{ |
| 80 | +"metricId": 1, |
| 81 | +"value": 5, |
| 82 | +"ctime": "", |
| 83 | +"mtime": "" |
| 84 | +} |
| 85 | + |
| 86 | +<> 2024-10-09T211455.200.json |
| 87 | +<> 2024-10-09T204935.200.json |
| 88 | +<> 2024-10-08T212659.200.json |
| 89 | +<> 2024-10-07T215443.200.json |
| 90 | + |
| 91 | +### |
| 92 | +PUT http://localhost:8888/metricTagD |
| 93 | +Content-Type: application/json |
| 94 | + |
| 95 | +{ |
| 96 | +"tagKey": "perf", |
| 97 | +"tagValue": "0.0" |
| 98 | +} |
| 99 | + |
| 100 | +<> 2024-10-08T222656.200.json |
| 101 | +<> 2024-10-08T222214.200.json |
| 102 | +<> 2024-10-08T213904.200.json |
| 103 | +<> 2024-10-08T212826.200.json |
| 104 | +<> 2024-10-08T212703.500.json |
| 105 | +<> 2024-10-07T230617.200.json |
| 106 | + |
| 107 | +### |
| 108 | +PUT http://localhost:8888/tags |
| 109 | +Content-Type: application/json |
| 110 | + |
| 111 | +{ |
| 112 | +"metricId": 1, |
| 113 | +"tagId": 1 |
| 114 | +} |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | +<> 2024-10-08T222659.200.json |
| 119 | +<> 2024-10-08T222218.200.json |
| 120 | +<> 2024-10-08T214154.200.json |
| 121 | +<> 2024-10-08T213912.200.json |
| 122 | +<> 2024-10-08T212923.500.json |
| 123 | +<> 2024-10-07T230658.200.json |
| 124 | +<> 2024-10-07T214653.500.json |
| 125 | + |
| 126 | +### |
| 127 | +DELETE http://localhost:8888/metricD/1 |
0 commit comments