{"id":21161330,"url":"https://github.com/apinf/monitoring","last_synced_at":"2026-02-26T10:35:23.938Z","repository":{"id":67914448,"uuid":"61021779","full_name":"apinf/monitoring","owner":"apinf","description":"Monitoring solution for internal services","archived":false,"fork":false,"pushed_at":"2016-09-07T17:42:06.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-10-30T20:40:56.924Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apinf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-06-13T08:47:53.000Z","updated_at":"2016-06-13T08:47:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d54a236-eb85-4f40-a568-5e8056f7b3cf","html_url":"https://github.com/apinf/monitoring","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/apinf/monitoring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinf%2Fmonitoring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinf%2Fmonitoring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinf%2Fmonitoring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinf%2Fmonitoring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apinf","download_url":"https://codeload.github.com/apinf/monitoring/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinf%2Fmonitoring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29856737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2024-11-20T13:12:55.047Z","updated_at":"2026-02-26T10:35:23.852Z","avatar_url":"https://github.com/apinf.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monitoring\n\nMonitoring solution for internal services.\n\n## Configuration files\n\n### Prometheus\n\n1. Create 'prometheus/alert.rules' based on 'prometheus/alert.rules.example'. More examples in [Prometheus documentation](https://prometheus.io/docs/alerting/rules/).\n2. Create 'prometheus/prometheus.yml' based on 'prometheus/prometheus.yml.example'. More examples in [Prometheus documentation](https://prometheus.io/docs/operating/configuration/).\n\n### Alert manager\n\n1. Create 'alertmanager/alertmanager.yml' based on 'alertmanager/alertmanager.yml.example'. More examples in [Prometheus documentation](https://prometheus.io/docs/alerting/configuration/).\n\n### Grafana\n\n1. Create 'grafana/env' based on 'grafana/env.example'. Can be override any [default settings](https://github.com/grafana/grafana/blob/master/conf/defaults.ini).\n\n### Nginx/SSL\n\n1. Create 'ssl/env' based on 'ssl/env.example'.\n\n\n## Running\n\n### First start\n1. ```docker-compose build```\n2. ```docker-compose up -d```\n\n### Stop\n\n1. ```docker-compose stop```\n\n### Re-start after change configs\n\n1. ```docker-compose build```\n2. ```docker-compose up -d```\n\n## Configuring Grafana\n\n1. Add DataSource with name: 'Prometheus', type: 'Prometheus', Url: 'http://prometheus:9090'\n\n## Add new node\n\n### Install monitoring agent on new node \n\n1. Create 'docker-compose.yml' based on file 'exporter/docker-compose.yml'. \n2. Create 'env.nginx' based on file 'exporter/env.nginx.example' and set HTTP Basic Authentication user name and password.\n3. ```docker-compose up -d```\n\n### Update Prometheus config\n\n1. Add new node in file 'prometheus/prometheus.yml' to 'targets' property.\n2. ```docker-compose build``` and ```docker-compose up -d```.\n\n### Add new dahsboard in Graphana\n\n1. Replace in 'grafana/charts_template.json' value 'node.exmaple.com' on new node host.\n2. Import file 'grafana/charts_template.json' as dashboard to Grafana.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapinf%2Fmonitoring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapinf%2Fmonitoring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapinf%2Fmonitoring/lists"}