Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/debug-ing/monitoring
https://github.com/debug-ing/monitoring
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/debug-ing/monitoring
- Owner: debug-ing
- Created: 2024-09-04T11:48:37.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-04T15:41:49.000Z (5 months ago)
- Last Synced: 2024-09-06T18:30:00.539Z (5 months ago)
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## monitoring
monitoring event## type alerting
انواع الرت ها prometheus
info
warning
critical## type data prometheus
# Counter
برای ذخیره تعداد با میره مثلا ذخیره تعداد درخواست ورودی یک API یا اکشن
# Gauge
برای سنجس یک مقدار در اون لحظه استفاده میشه مثل ذخیره میزان مصرف cpu یا ram
# Histogram
میاد لیست از اطلاعات داخل خودش ذخیره میکنه مثل چی؟ میشه دقیقا همه API ها کال شده متناسب با زمان رسپانسش داخل گذاشت و اونو به باکت مختلف تقسیم کرد
```js
const httpRequestDuration = new client.Histogram({
name: 'http_request_duration_seconds',
help: 'Duration of HTTP requests in seconds',
labelNames: ['method', 'route', 'status_code'],
buckets: [0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 1, Infinity]
});
```
# Summary
دقیقا شبیه Histogram هستش فقط با این فرق تقسیم بندی نوع کوانتیلها هستش یعنی چی؟ حالا
```js
const httpRequestDuration = new client.Histogram({
name: 'http_request_duration_seconds',
help: 'Duration of HTTP requests in seconds',
labelNames: ['method', 'route', 'status_code'],
buckets: [0.5, 0.9, 0.99]
});
```## Docker prometheus
you can show all docker prometheus## ToDo
- [x] prometheus + nginx (docker)
- [x] grafana (docker)
- [x] sample node js
- [ ] alert manager send email and telegram