UNSOLVED

SysEng777

updated

5 years ago

S

SysEng777

25 Posts

0

14149

October 4th, 2016 14:00

ScaleIO Historical Performance Monitoring

I did some research on this and got back some info from my EMC SE.

Monitoring EMC ScaleIO with Grafana using Intel SDI’s Snap | {code} by Dell EMC

Monitoring EMC Elastic Cloud Storage with Grafana | {code} by Dell EMC

or GitHub - swisscom/collectd-scaleio: A collectd plugin for scaleio

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. 

  • 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

  • SysEng777

    25 Posts

    9962

    1

    Posted November 11th, 2016 13:00

  • c0redump

    68 Posts

    9962

    0

    Posted November 12th, 2016 17:00

    Thanks a lot carterbury1,

    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.

    Thanks again,

    Davide

  • SysEng777

    25 Posts

    9962

    0

    Posted November 13th, 2016 09:00

    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.

  • c0redump

    68 Posts

    9962

    0

    Posted November 13th, 2016 20:00

    Hi carterbury1,

    to fix the password issue you can edit the file "/usr/share/collectd/python/scli_wrap.sh" substituting the line 11:

    login_out=$(scli --login --username ${USER} --password ${PASS} 2>&1)

    with these lines:

    cmd="scli --login --username '"$USER"' --password '"$PASS"'"

    login_out=$(eval $cmd)

    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.

    Thanks,

    Davide

  • SysEng777

    25 Posts

    9962

    0

    Posted November 14th, 2016 15:00

    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.

  • c0redump

    68 Posts

    9962

    0

    Posted November 17th, 2016 20:00

    Hi carterbury1,

    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!

    Kind Regards,

    Davide

  • c0redump

    68 Posts

    9962

    0

    Posted November 29th, 2016 19:00

    Hello carterbury1,

    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.

    This is the link to our GitHub code repository where you can find the collectd plugin: https://github.com/epicnetworks/collectd-scaleio

    Thanks in Advance,

    Davide

  • SysEng777

    25 Posts

    9972

    0

    Posted November 30th, 2016 10:00

    Davide,

    I will be happy to test this out.  I should have time to put this in place next week.  I will let you know how it goes.

    Thanks,

    Chad

  • SysEng777

    25 Posts

    3926

    0

    Posted December 20th, 2016 08:00

    Davide,

    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.

    Chad