- Following the Tabular Data Model, create an XML file
- Register the Data Model against ClearStone’s ODI
- Stream MongoDB Performance data to ClearStone’s ODI with shell scripts
- Scrub the stats output
- Use curl to stream the data to ClearStone ODI
Articles tagged ODI
The views expressed in this blog are strictly personal, and do not necessarily represent the views of Evident Software.
MongoDB logging & monitoring using ClearStone’s REST-based Open Data InterfaceDate: March 4, 2011Tags: mongodb logging, mongodb monitoring, ODI |
Tim Sneed of Evident’s development staff has posted on our support site about enhancing MongoDB logging and monitoring with Evident ClearStone. In the post, he explains the basics of publishing the output of mongostat to ClearStone’s REST based Open Data Interface (ODI), using curl to stream the data.
The procedure is simple:
The logging and performance monitoring data can now appear in the ClearStone Real Time Dashboard.
Read Tim’s post here.
|
ClearStone 5.X Collection Configuration TutorialDate: February 21, 2011Tags: ClearStone 5.0, Collection, ECS, JVM, ODI, Tutorial |
By Bill Nigh We’re still in our beta period, but I asked if I could blog about the notions of ClearStone 5.0 collectors and other methods we support to instrument and monitor pretty much any resource in any tier of your ever-changing application stack. More detail about collectors forthcoming, but, for now, let’s jump directly into a representative user experience with our ClearStone admin console. There, you will learn how to set up collections for NoSQL DB champ Cassandra and for JVM. (See related discussions of JConsole) |
What users can do with Evident ClearStone’s REST-Open Data InterfaceDate: February 18, 2011Tags: api, http, ODI, Open Data Interface, operating system, REST, sar, system monitoring, third party data |
By Ivan Ho The ProblemCustomers and partners have requested a monitoring interface that allows them to deliver or collect third party or proprietary application or system data/events to Evident ClearStone. These data feeds may complement the existing Evident ClearStone Management Packs. Therefore adding tremendous value to consolidate and correlate across disparate applications and systems. The interface had to be simple to use by developers and system administrations with minimal dependencies and minimal knowledge about ClearStone internals. The expectation is for any third party data delivered to ClearStone are the following:
The SolutionWith the release of Evident ClearStone 5, the product has been opened up to support any third party data. This is accomplished via Evident ClearStone’s new REST-Open Data Interface (REST-ODI). This feature allows developers to use their programming language of preference (Java, Ruby, Python, Perl, PHP, etc.) to publish time-series data and events to Evident ClearStone. System, network, and database administrators can easily use this interface to publish performance data and events as well from legacy/proprietary system tools, applications, scripts, and logs via this interface with minimal scripting effort. Partners can leverage this interface to submit performance metrics and events thru the REST-ODI interface as well. What we’ve done with the REST-ODI feature is the following:
Use CaseLet’s have a look at a use case based on using the sar command for system monitoring of Linux/UNIX systems. This is one of the first tools administrators use for monitoring server or application performance problems. The sar command gathers system activity information such as: CPU utilization, memory paging, network I/O, process creation activity, block devices activity, interrupts, etc. So, how do we take the following sar output for CPU utilization and send it to Evident ClearStone?
Based on this output we need to come up with a “schema” that will help Evident ClearStone process this content. Then we need a script that will automate the delivery of this data on a recurring basis. Here’s what we can visually analyze with this output:
The following content illustrates an abbreviated process on how to construct the schema, publishing it, scripting the monitoring, and publishing the data to Evident ClearStone. Step 1. Construct the schema to describe the dataThe schema for this data is defined in the following XML. For details on how to create this, please consult this article on the support site.
You’ll notice the following in the XML:
Step 2. Publish the schemaThe next step is to publish the schema (sar_cpu.xml) to Evident ClearStone. One option is to use the curl command. The curl tool is used to transfer data from or to a server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, GOPHER, DICT, TELNET, LDAP or FILE). The command is designed to work without user interaction on most operating systems. Here’s an example of how to post data via HTTP: Other options for publishing the schema are described here. Step 3. Create scriptLet’s turn our attention to formatting and encapsulating the sar output into an XML format. Here’s a simplified shell script that produces the XML content require for ODI. The script constructs the required <data> element and replaces the variables (i.e. $RESOURCE_NAME, $CATEGORY, $TYPE_MODEL, $COLLECTION_TIME, $INTEVAL) with values set in the script. The sar output based on sar -P ALL $INTERVAL 1 | grep -v -E ‘Average|all’ is wrapped within a CDATA segment as-is.
The results will look like:
You’ll notice the following in this output:
Step 4. Publish the resultsThe last step is to deliver the XML content to the Evident ClearStone server. Here’s an example of how to use curl to publish the sar data to ECS. For the complete implementation for system monitoring with sar, please refer to the Linux: Integrating SAR with Evident ClearStone article. This article contains the schemas and automated scripts for sar monitoring. |

View Comments