mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
- allows skipping symlink creation - symlink binary destinations can be configured - renamed git_version -> cgrates_branch. This also makes sure cgrates_branch variable is being set directly from the role and there's no need to configure it in the playbook. - fixed some linter warnings and slightly improved formatting
CGRateS Monitoring Setup Playbook
Inventory (inventory.ini):
[monit]
foo.example.com ansible_host=myserverip ansible_port=22 ansible_user=myuser
[monit:vars]
install_or_update_cgrates=true
Run playbook:
ansible-playbook -i inventory.ini /path/to/playbook/main.yml
Access Grafana:
ssh -L 8080:localhost:3000 myuser@myserverip
Browse to http://localhost:8080 and login
username: admin password: admin
Components and their ports:
CGRateS: 2012 Node Exporter: 9100 Prometheus: 9090 Grafana: 3000
Imported Grafana dashboards:
- Go Metrics (ID: 13240) - a custom solution for this one would be preferred
- Node Exporter (ID: 1860)
Note
Go Metrics tracks both the node_exporter and prometheus alongside CGRateS (all written in go). Make sure that job "cgrates" is the one selected.
Services can be managed via systemd