https://github.com/zkfmapf123/monitoring
monitoring
https://github.com/zkfmapf123/monitoring
Last synced: 4 months ago
JSON representation
monitoring
- Host: GitHub
- URL: https://github.com/zkfmapf123/monitoring
- Owner: zkfmapf123
- Created: 2023-08-05T05:20:57.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-06T01:36:08.000Z (almost 3 years ago)
- Last Synced: 2025-01-13T09:38:24.931Z (over 1 year ago)
- Language: HCL
- Size: 872 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Monitoring
## Metric 방식
> Push 방식

```ts
app.get('/', (req, res) => {
// ... service login
// ... send metric
})
```
> Pull 방식

```yml
global:
scrape_interval: 15s
evaluation_interval: 15s
external_loables:
monitor: 'my-project'
targets: 'localhost:8000'
```
## Monitoring use CloudWatch-Agent
- cloudwatch agent를 설치하여 해당 instnace의 대한 metric을 수집한다.
- logging, metric 을 json 파일로 구성하여 cloud-watch로 사용할 수 있다

## Metric use Prometheus
- 시간별로 변환하는 데이터(time-series data)를 저장하고 수집
- 다차원 데이터를 다룬다. (use PromQL)
- 자체 local, s3, remote storage 방식의 저장방식을 설정할 수 있음
- push, pull 방식 모두 지원