{"id":24485792,"url":"https://github.com/debug-ing/monitoring","last_synced_at":"2026-01-02T12:05:02.678Z","repository":{"id":255482298,"uuid":"852194894","full_name":"debug-ing/monitoring","owner":"debug-ing","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-04T15:41:49.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T14:19:56.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/debug-ing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-04T11:48:37.000Z","updated_at":"2024-09-04T15:41:53.000Z","dependencies_parsed_at":"2024-09-05T17:55:33.182Z","dependency_job_id":"7bb54390-45c0-4a25-9813-00169d5950f4","html_url":"https://github.com/debug-ing/monitoring","commit_stats":null,"previous_names":["debug-ing/monitoring"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debug-ing%2Fmonitoring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debug-ing%2Fmonitoring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debug-ing%2Fmonitoring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debug-ing%2Fmonitoring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/debug-ing","download_url":"https://codeload.github.com/debug-ing/monitoring/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243652694,"owners_count":20325607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-21T14:20:00.311Z","updated_at":"2026-01-02T12:05:02.630Z","avatar_url":"https://github.com/debug-ing.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## monitoring\nmonitoring event\n\n\n## type alerting\nانواع الرت ها prometheus\ninfo\nwarning\ncritical\n\n## type data prometheus\n# Counter\nبرای ذخیره تعداد با میره مثلا ذخیره تعداد درخواست ورودی یک API یا اکشن\n# Gauge \nبرای سنجس یک مقدار در اون لحظه استفاده میشه مثل ذخیره میزان مصرف cpu یا ram\n# Histogram\nمیاد لیست از اطلاعات داخل خودش ذخیره میکنه مثل چی؟ میشه دقیقا همه API ها کال شده متناسب با زمان رسپانسش داخل گذاشت و اونو به باکت مختلف تقسیم کرد\n```js\nconst httpRequestDuration = new client.Histogram({\n  name: 'http_request_duration_seconds',\n  help: 'Duration of HTTP requests in seconds',\n  labelNames: ['method', 'route', 'status_code'],\n  buckets: [0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 1, Infinity]\n});\n```\n# Summary \nدقیقا شبیه Histogram هستش فقط با این فرق تقسیم بندی نوع کوانتیل‌ها هستش یعنی چی؟ حالا\n```js\nconst httpRequestDuration = new client.Histogram({\n  name: 'http_request_duration_seconds',\n  help: 'Duration of HTTP requests in seconds',\n  labelNames: ['method', 'route', 'status_code'],\n  buckets: [0.5, 0.9, 0.99]\n});\n```\n\n## Docker prometheus\nyou can show all docker prometheus\n\n## ToDo\n- [x] prometheus + nginx (docker)\n- [x] grafana (docker)\n- [x] sample node js\n- [ ] alert manager send email and telegram","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebug-ing%2Fmonitoring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebug-ing%2Fmonitoring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebug-ing%2Fmonitoring/lists"}