Skip to content

Commit

Permalink
add the document of metric service.
Browse files Browse the repository at this point in the history
  • Loading branch information
toyboxman committed Nov 26, 2024
1 parent ab610b9 commit 4268f7b
Showing 1 changed file with 127 additions and 0 deletions.
127 changes: 127 additions & 0 deletions griffin-doc/dev-2/new-metric-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

## Abstract
Apache Griffin 2.0 is a new generation of Data Service Platform.Compared to Griffin 1.0, new version aims to provide a
more decouple service framework, including griffin-connectors, griffin-metric, griffin-dqc, griffin-scheduler.

Here, we will give much more details about griffin-metric.

## Apache Griffin Metric
http://127.0.0.1:8888/h2-console/login.do?jsessionid=787b7279ce05baa951acf0abfdd60df5

###
GET http://localhost:8888/ping

###
GET http://localhost:8888/allMetricDs

<> 2024-10-09T211552.500.json
<> 2024-10-09T211458.200.json
<> 2024-10-09T211446.200.json
<> 2024-10-09T204950.200.json
<> 2024-10-09T195018.200.json
<> 2024-10-08T223000.200.json
<> 2024-10-08T222937.200.json
<> 2024-10-08T222713.200.json
<> 2024-10-08T222237.200.json

###
PUT http://localhost:8888/metricD
Content-Type: application/json

{
"description": "test metric",
"metricName": "latency",
"owner": "admin"
}

<> 2024-10-14T221213.201.json
<> 2024-10-14T220832.201.json
<> 2024-10-14T220539.201.json
<> 2024-10-14T220401.201.json
<> 2024-10-14T220108.201.json
<> 2024-10-14T220024.201.json
<> 2024-10-14T215934.201.json
<> 2024-10-14T215227.201.json
<> 2024-10-14T213212.201.json
<> 2024-10-10T222838.201.json
<> 2024-10-09T225958.400.json
<> 2024-10-09T225404.200.json
<> 2024-10-09T211450.200.json
<> 2024-10-09T204917.200.json
<> 2024-10-08T222650.200.json
<> 2024-10-08T222209.200.json
<> 2024-10-08T213859.200.json
<> 2024-10-08T212816.200.json
<> 2024-10-08T212648.200.json

###
PUT http://localhost:8888/metricV
Content-Type: application/json

{
"metricId": 1,
"value": 5,
"ctime": "",
"mtime": ""
}

<> 2024-10-09T211455.200.json
<> 2024-10-09T204935.200.json
<> 2024-10-08T212659.200.json
<> 2024-10-07T215443.200.json

###
PUT http://localhost:8888/metricTagD
Content-Type: application/json

{
"tagKey": "perf",
"tagValue": "0.0"
}

<> 2024-10-08T222656.200.json
<> 2024-10-08T222214.200.json
<> 2024-10-08T213904.200.json
<> 2024-10-08T212826.200.json
<> 2024-10-08T212703.500.json
<> 2024-10-07T230617.200.json

###
PUT http://localhost:8888/tags
Content-Type: application/json

{
"metricId": 1,
"tagId": 1
}



<> 2024-10-08T222659.200.json
<> 2024-10-08T222218.200.json
<> 2024-10-08T214154.200.json
<> 2024-10-08T213912.200.json
<> 2024-10-08T212923.500.json
<> 2024-10-07T230658.200.json
<> 2024-10-07T214653.500.json

###
DELETE http://localhost:8888/metricD/1

0 comments on commit 4268f7b

Please sign in to comment.