I chose the latter but found the instructions very sparse. If anyone needs more detailed instructions, I have written them up for internal documentation as my manager didn't want me to have to reinvent the wheel in a year if I needed to configure this again.
I made a fix to the wrapper shell script wrote by swisscom because I had some problem using some specific special character in the password.
Now I'm planning to redesign the wrapper method: I'd like to use the ScaleIO REST API querying the directly the gateway for ScaleIO data instead of parsing the scli output using the wrapper script. I'll keep you updated.
I had the same problem with the password. I figured it was in passing the password. My workaround was storing the password in the other script file which was not ideal. Let me know.
Then edit the file "/etc/collectd/collectd.conf.d/python.conf" and double quote the User and the Password values this way:
User "your_user_here"
# ScaleIO user for getting metrics (creating a read-only user makes sense), default: admin
Password "your_password_here"
# Password of the ScaleIO user, default: admin
Then restart collectd daemon and check if the fix works also for you.
In my spare time I wrote a python script useful to get the metric values directly from the ScaleIO gateway taking advantage of ScaleIO REST-API instead of wrapping and parsing scli output. I have to make some further check but it seems to work. In the next days I will integrate my work in the SwissCom collectd python script. It will take a bit because I'm doing this work in my spare time.
In my opinion, querying the gateway (using the provided API) is a better approach for some reasons:
- all the metric related components can be installed on a different VM and will query only the gateway (that isn't an active player in SIO environment). Running scli to collect and parse data continuously on a MDM node is not the best solution.
- the gateway knows the topology of the SIO environment at any given time on the contrary the SwissCom wrapper have to be installed on all MDMs because, if it is installed only on one MDM the data aren't collected in case of failure of that specific node.
I will write you as soon as I have a working and stable version of my implementation.
That fix did work for the login being passed. Thanks!
Yes, let me know when you come up with this alternative solution. I would be willing to trial it out. Removing the additional components is not a bad thing at all. I currently upgraded to 2.0 so I have 3 MDM's, one of which only has mdm installed on it as a stand alone machine outside my hypervisor Cluster. This is the mdm I have as master unless something goes bump on the network. I only installed the solution on this one mdm that does not participate as sdc or sds.
A quick look at top doesn't show a whole lot of activity for what this machine is doing but I get the concept and agree with it.
today I merged my code with the SwissCom scaleio.py plugin. Now I'm testing it on my infrastructure and I'm improving the code adding some exception handling and logging for most common problems.
After testing I will release it on GitHub, I think before monday. I will keep you updated!
I just released the version of the collectd plugin that relies on REST-API to get metrics from ScaleIO infrastructure. I would be very happy if you can test it.
- The dashboard was left untouched.
- The scli_wrap.sh is no longer needed.
- I added some directives in configuration file and I changed the name of some other (choosing more explicative names): for example "User" is now "MDMUser" and "Password" is "MDMPassword"
- As you can see in the README now all the StoragePools to be monitored must be declared in the configuration file using the parameters "Pools", they have to be separated by spaces.
- It is better to use double-quotes for all the configuration values according the example in the README file.
If you authorize me to revisit and include the instructions you sent me (according the new design) I'd like to include it as official documentation.
I have moved to your plugin without issue. Finished late in the day yesterday re-configuring. Came in today and it is looking good. We have had a few core switch issues recently and I had lost stats curing those periods of time when my MDM failed to another. It will be nice that the stats just keep coming in. This is a great enhancement to the monitor.
c0redump
68 Posts
9962
0
Posted November 11th, 2016 10:00
Hello carterbury1,
I was planning to implement some historical metric monitoring for our production ScaleIO environment and I remembered your post.
If you don't mind sharing your instructions I'd like to take a look.
Kind regards,
Davide