{"id":20661870,"url":"https://github.com/mirantis/rpc_monitor","last_synced_at":"2025-06-30T00:07:49.555Z","repository":{"id":140970438,"uuid":"73903211","full_name":"Mirantis/rpc_monitor","owner":"Mirantis","description":"monitoring tools for oslo.messaging","archived":false,"fork":false,"pushed_at":"2020-02-26T12:06:59.000Z","size":23,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-21T08:46:22.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/Mirantis.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":"2016-11-16T09:13:08.000Z","updated_at":"2020-01-27T15:17:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9f1443e-047a-47a8-8bfc-fea594b76684","html_url":"https://github.com/Mirantis/rpc_monitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mirantis/rpc_monitor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Frpc_monitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Frpc_monitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Frpc_monitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Frpc_monitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mirantis","download_url":"https://codeload.github.com/Mirantis/rpc_monitor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Frpc_monitor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262685696,"owners_count":23348451,"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":"2024-11-16T19:11:58.788Z","updated_at":"2025-06-30T00:07:49.529Z","avatar_url":"https://github.com/Mirantis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RPC Monitoring tools for oslo.messaging\n\n\n\n# Installation guide:\n\n1) Apply patch for oslo.messaging (only mos 9.0 avaliable now):\n  *  on fuel master node: `git clone https://github.com/kbespalov/rpc_monitor \u0026\u0026 cd ./rpc_monitor/setup/`\n  *  execute `python ./patch_mos.py`\n  *  if you need to change patching settings `vim patch_mos.py`\n  *  ```py\n        # ----- SETTINGS ---------\n        # patch location\n        PATCH = './mos_patches/mos9.patch'\n        # destination path for scp\n        SCP_TO = '/usr/lib/python2.7/dist-packages/'\n        # do revers patch\n        REVERS = False\n        # ----- SETTINGS ---------\n      ```\n  * patched nodes are written in `./mos_patch/patched_nodes.txt`\n\n2) Restart all openstack services\n * `python ./restart_services.py`\n\n3) Choose any compute node as monitoring service backend:\n - `ssh node-x`\n - setup influxdb:\n ``` sh\n wget https://dl.influxdata.com/influxdb/releases/influxdb_0.13.0_amd64.deb\n sudo dpkg -i influxdb_0.13.0_amd64.deb\n sudo service influxdb start\n ```\n - setup grafana:\n  ``` sh\n  wget https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.0-1468321182_amd64.deb\n  sudo dpkg -i grafana_3.1.0-1468321182_amd64.deb\n  sudo service grafana-server start\n  ```\n  - choose any controller node with enabled rabbitmq managment panel and make ssh tunnel\n  ```\n  # rabbitmq managment panel binds on localhost, so tunnel is needed\n  ssh 192.168.0.17 -L 15674:localhost:15672\n  ```\n  - download monitor `git clone https://github.com/kbespalov/rpc_monitor \u0026\u0026 cd ./rpc_monitor`\n  - `pip install -r requirements.txt`\n  - Configure ip, port and rabbitmq credentials in `monitor.ini`\n      ``` ini\n      [DEFAULT]\n      backend = rabbit\n      workers = 16\n      poll_delay = 30\n      log_level = INFO\n      listener_only = False\n\n      [rabbit_monitor]\n      # tunnel is used, so localhost\n      management_url = http://localhost:15674\n      # just copy nova credentials from /etc/nova/nova.conf\n      management_user = nova\n      management_pass = nova_password\n      amqp_url = amqp://nova:nova_password@192.168.0.17:5673\n\n      [influx_repository]\n      db = rpc_monitor\n      host = localhost\n      port = 8086\n      user = root\n      password = root\n      ```\n  - run `python ./run.py --config-file monitor.ini`\n  - if all is okay, samples from services are collected to influxdb via monitor\n\n4) Configure Grafana (`admin:admin`):\n    * Create new datasource `http://localhost:3000/datasources` (default must be True)\n    * ![](http://i.imgur.com/fqhRkuz.png)\n    * Import dashboard from file `http://localhost:3000/dashboard/new?editview=import`:\n        * file located at: `rpc_monitor/setup/grafana/dashboard.json`\n    * go to imported dashboard, you must see somethink like that:\n    ![](http://i.imgur.com/NWSmAxt.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirantis%2Frpc_monitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirantis%2Frpc_monitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirantis%2Frpc_monitor/lists"}