# MSA 기본의 APM으로 모니터링이 가능한가 ?

### Kiali (Kubernetes add on for istio)

[![image.png](http://web.joang.com:8083/uploads/images/gallery/2023-09/scaled-1680-/MIMimage.png)](http://web.joang.com:8083/uploads/images/gallery/2023-09/MIMimage.png)

[![image.png](http://web.joang.com:8083/uploads/images/gallery/2023-09/scaled-1680-/DyWimage.png)](http://web.joang.com:8083/uploads/images/gallery/2023-09/DyWimage.png)

- [**Istio** ](https://istio.io/)+ [**Kiali**](https://kiali.io/) :   
    [Istio Install](https://istio.io/latest/docs/setup/install/istioctl/)   
    [Kiali Install](https://kiali.io/docs/installation/) 웹 대시보드 형태로 Istio 정책을 제어하고 Istio 동작을 확인할 수 있는 기능을 지원  
    [https://isn-t.tistory.com/43](https://isn-t.tistory.com/43)
- 오픈 소스 APM Pinpoint 도입 및 후기 :   
    [https://tech.trenbe.com/2022/02/22/pinpoint.html](https://tech.trenbe.com/2022/02/22/pinpoint.html)  
    [https://pinpoint-apm.github.io/pinpoint/index.html](https://pinpoint-apm.github.io/pinpoint/index.html)

### Pinpoint 

Pinpoint는 분산 서비스 및 시스템의 성능 분석/진단/추적 플랫폼 서비스로서 “N” 계층의 SOA(Service Oriented Architecture) 및 Micro-Service로 구성된 아키텍처 서비스의 추적 및 분석 기능을 제공하고, 분산 애플리케이션의 트랜잭션 분석, Topology Detection, Bytecode Instrumentation을 활용한 진단 기능을 제공

[![image.png](http://web.joang.com:8083/uploads/images/gallery/2023-09/scaled-1680-/i1Kimage.png)](http://web.joang.com:8083/uploads/images/gallery/2023-09/i1Kimage.png)

[https://guide-fin.ncloud-docs.com/docs/pinpoint-pinpoint-1-1](https://guide-fin.ncloud-docs.com/docs/pinpoint-pinpoint-1-1)

<iframe allowfullscreen="allowfullscreen" height="314" src="https://www.youtube.com/embed/U4EwnB34Dus?si=h-BxZI9QcCpZ7MDS" width="560"></iframe>

### Istio 설치시 선택 profile 

- <span style="color: rgb(255, 255, 255);">**default**</span>: 디폴트 프로필은 IstioOperator API의 기본 설정에 따라 구성 요소를 활성화합니다. 이 프로필은 프로덕션 배포 및 멀티클러스터 메시의 주요 클러스터에 권장됩니다. 디폴트 설정을 확인하려면 istioctl profile dump 명령을 실행할 수 있습니다.
- <span style="color: rgb(255, 255, 255);">**demo**</span>: 이 프로필은 Istio의 기능을 적은 자원 요구 사항으로 표시하기 위해 설계된 구성입니다. Bookinfo 애플리케이션과 관련 작업을 실행하는 데 적합합니다. 이 프로필은 높은 수준의 추적 및 액세스 로깅을 활성화하므로 성능 테스트에는 적합하지 않습니다.
- <span style="color: rgb(255, 255, 255);">**minimal**</span>: 디폴트 프로필과 동일하지만 제어 플레인 구성 요소만 설치됩니다. 이를 통해 제어 플레인 및 데이터 플레인 구성 요소 (예: 게이트웨이)를 별도의 프로필을 사용하여 구성할 수 있습니다.
- <span style="color: rgb(255, 255, 255);">**remote**</span>: 외부 제어 플레인 또는 멀티클러스터 메시의 주요 클러스터에서 관리되는 원격 클러스터를 구성하는 데 사용됩니다.
- <span style="color: rgb(255, 255, 255);">**empty**</span>: 아무 것도 배포하지 않습니다. 사용자 정의 구성을 위한 기본 프로필로 유용할 수 있습니다.
- <span style="background-color: rgb(0, 0, 0);">**preview**</span>: 프리뷰 프로필에는 실험적인 기능이 포함되어 있습니다. Istio에 새로운 기능을 탐색하기 위해 사용됩니다. 안정성, 보안 및 성능은 보장되지 않으므로 사용 시 주의가 필요합니다.
- <span style="color: rgb(255, 255, 255);">**ambient**</span>: 앰비언트 프로필은 앰비언트 메시를 시작하는 데 도움을 주도록 설계되었습니다.

The components marked as ✔ are installed within each profile:

<table id="bkmrk-%C2%A0-default-demo-minim"><thead><tr><th> </th><th>default</th><th>demo</th><th>minimal</th><th>remote</th><th>empty</th><th>preview</th><th>ambient</th></tr></thead><tbody><tr><td>Core components</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr><tr><td> `istio-egressgateway`</td><td> </td><td>✔</td><td> </td><td> </td><td> </td><td> </td><td> </td></tr><tr><td> `istio-ingressgateway`</td><td>✔</td><td>✔</td><td> </td><td> </td><td> </td><td>✔</td><td> </td></tr><tr><td> `istiod`</td><td>✔</td><td>✔</td><td>✔</td><td> </td><td> </td><td>✔</td><td>✔</td></tr><tr><td> `CNI`</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>✔</td></tr><tr><td> `Ztunnel`</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>✔</td></tr></tbody></table>

To further customize Istio, a number of addon components can also be installed. Refer to [integrations](https://istio.io/latest/docs/ops/integrations) for more details.