Created
August 18, 2017 17:12
-
-
Save aneeshkp/8ed6b4635ca3c1e637323e3de5790d47 to your computer and use it in GitHub Desktop.
DMA-SA AMQP1.0 collectd to Rx installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########################### | |
| #install Collectd | |
| ########################### | |
| $ git clone https://github.com/ajssmith/collectd.git | |
| $ cd collectd/ | |
| [collectd]$ git checkout amqp1_dev_branch | |
| [collectd]$./build.sh | |
| [collectd]$./configure | |
| #Check out put to confirm amqp1 modules is available | |
| #amqp1 . . . . . . . yes | |
| [collectd]$make install | |
| # Edit src/collectd.conf | |
| [collectd]$ vi src/collectd | |
| #un comment | |
| LoadPlugin amqp1 | |
| <Plugin amqp1> | |
| <Transport "name"> | |
| Host "localhost" | |
| Port "5672" | |
| # User "guest" | |
| # Password "guest" | |
| i Address "collectd" | |
| # <Instance "log"> | |
| # Format JSON | |
| # PreSettle false | |
| # </Instance> | |
| <Instance "notify"> | |
| Format JSON | |
| PreSettle true | |
| </Instance> | |
| # <Instance "telemetry"> | |
| # Format JSON | |
| # PreSettle false | |
| # </Instance> | |
| </Transport> | |
| </Plugin>' | |
| ###################################################### | |
| #Install qpid router in same server (standalone single router) | |
| ###################################################### | |
| $ git clone https://github.com/aneeshkp/qpid-ansible | |
| $ cd qpid-ansible | |
| #edit hosts and server address under stand alone | |
| [standalone] | |
| 10.19.110.23 | |
| # run ansible play book to config and install router | |
| ansible-playbook -i hosts main.yaml --tags config,router,start,status --limit standalone | |
| ###################################################### | |
| #running recevier top read from collectd | |
| ###################################################### | |
| $ git clone https://github.com/aneeshkp/proton-client-gnocchi.git | |
| $ cd proton-client-gnocchi | |
| [proton-client-gnocchi]$ src config.sh | |
| [proton-client-gnocchi]$ python protonclientgnocchi/recv.py -a localhost:5672/u/collectd/notify -m 0 -g 0 | |
| ###################################################### | |
| #running collectd | |
| ###################################################### | |
| $ cd ~/collectd | |
| [collectd]$ ./collectd -C src/collectd -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment