-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update Signed-off-by: Jongseob Jeon <[email protected]> * add preprequisites docker (#108) * rebase * add docker posts Signed-off-by: Jongseob Jeon <[email protected]> * add post and fix pre-commit Signed-off-by: Jongseob Jeon <[email protected]> * update Signed-off-by: Jongseob Jeon <[email protected]> * finalize docker Signed-off-by: Jongseob Jeon <[email protected]> * change title requirements to install Signed-off-by: Jongseob Jeon <[email protected]> * Apply suggestions from code review Co-authored-by: Jaeyeon Kim <[email protected]> * Apply suggestions from code review Co-authored-by: Jaeyeon Kim <[email protected]> * update Signed-off-by: Jongseob Jeon <[email protected]> Co-authored-by: Jongseob Jeon <[email protected]> Co-authored-by: Jaeyeon Kim <[email protected]> Co-authored-by: Jongseob Jeon <[email protected]> Co-authored-by: Jaeyeon Kim <[email protected]>
- Loading branch information
1 parent
7f23e9e
commit fe4f456
Showing
50 changed files
with
2,126 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,3 +94,4 @@ lastMod = false | |
[menu.section] | ||
auto = false | ||
collapsibleSidebar = true | ||
mainSections = ["docs", "prerequisites"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title : "5. Multi Models" | ||
title : "6. Multi Models" | ||
description: "" | ||
lead: "" | ||
draft: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title : "3. Seldon Fields" | ||
title : "4. Seldon Fields" | ||
description: "" | ||
lead: "" | ||
draft: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title : "3. Seldon Monitoring" | ||
description: "Prometheus & Grafana 확인하기" | ||
date: 2021-12-24 | ||
lastmod: 2021-12-24 | ||
draft: false | ||
weight: 412 | ||
contributors: ["Jongseob Jeon"] | ||
menu: | ||
docs: | ||
parent: "api-deployment" | ||
--- | ||
|
||
## Grafana & Prometheus | ||
|
||
이제, [지난 페이지]({{< relref "docs/api-deployment/seldon-iris.md" >}})에서 생성했던 SeldonDeployment 로 API Request 를 반복적으로 수행해보고, 대시보드에 변화가 일어나는지 확인해봅니다. | ||
|
||
### 대시보드 | ||
|
||
[앞서 생성한 대시보드]({{< relref "docs/setup-components/install-components-pg.md" >}})를 포트 포워딩합니다. | ||
|
||
```text | ||
kubectl port-forward svc/seldon-core-analytics-grafana -n seldon-system 8090:80 | ||
``` | ||
|
||
### API 요청 | ||
|
||
[앞서 생성한 Seldon Deployment]({{< relref "docs/api-deployment/seldon-iris.md#using-cli" >}})에 요청을 **반복해서** 보냅니다. | ||
|
||
```text | ||
curl -X POST http://$NODE_IP:$NODE_PORT/seldon/seldon-deploy/sklearn/api/v1.0/predictions \ | ||
-H 'Content-Type: application/json' \ | ||
-d '{ "data": { "ndarray": [[1,2,3,4]] } }' | ||
``` | ||
|
||
그리고 그라파나 대시보드를 확인하면 다음과 같이 Global Request Rate 이 `0 ops` 에서 순간적으로 상승하는 것을 확인할 수 있습니다. | ||
|
||
<p align="center"> | ||
<img src="/images/docs/setup-modules/repeat-raise.png" title="grafana"/> | ||
</p> | ||
|
||
이렇게 프로메테우스와 그라파나가 정상적으로 설치된 것을 확인할 수 있습니다. |
Oops, something went wrong.