Browse Source

add the custom metrics

Signed-off-by: wjf <1287290237@qq.com>
tags/v0.6.0
wjf 3 years ago
parent
commit
f7fa09c70c
4 changed files with 14 additions and 0 deletions
  1. +14
    -0
      docs/proposals/Lifelong-learning-Ops-ui.md
  2. BIN
      docs/proposals/images/lifelong-learning-ops-custom-metrics-values.png
  3. BIN
      docs/proposals/images/lifelong-learning-ops-custom-metrics.png
  4. BIN
      docs/proposals/images/lifelong-learning-ops-metrics-grafana.png

+ 14
- 0
docs/proposals/Lifelong-learning-Ops-ui.md View File

@@ -144,6 +144,20 @@ There are two types of Promtail collection modes. The following table shows the
| DeployStatus | Enum(Waiting,Ok,NotOk) |
| DeployModelUrl | The url for deploying model |


#### Custom metric
Now, the metrics that come with lifelonglearning may not meet your needs, so here is a way for users to expand metrics.
You can register your own indicators in the Metic table,as shown in the table below:
![img.png](images/lifelong-learning-ops-custom-metrics.png)
I added precision and recall to the table,Of course, you can also add any other metrics you want.

After this, when you want to add an metric of the same id to the Metric_value table, multiple metrics will be generated according to the different labels.
![img.png](images/lifelong-learning-ops-custom-metrics-values.png)

And, both Metric and Metric_value tables are located in the KB database.
Therefore, you can manipulate these two tables just like any other table in the KB.


#### Example

```


BIN
docs/proposals/images/lifelong-learning-ops-custom-metrics-values.png View File

Before After
Width: 755  |  Height: 182  |  Size: 16 kB

BIN
docs/proposals/images/lifelong-learning-ops-custom-metrics.png View File

Before After
Width: 688  |  Height: 158  |  Size: 18 kB

BIN
docs/proposals/images/lifelong-learning-ops-metrics-grafana.png View File

Before After
Width: 1162  |  Height: 465  |  Size: 64 kB Width: 1592  |  Height: 808  |  Size: 132 kB

Loading…
Cancel
Save