| To: | pcp@xxxxxxxxxxx |
|---|---|
| Subject: | Converting and SQL statement into a PMIE rule for evaluation against pmlogger archives |
| From: | Shirshendu Chakrabarti <shirshendu@xxxxxxx> |
| Date: | Tue, 18 Nov 2014 21:19:34 +0530 |
| Delivered-to: | pcp@xxxxxxxxxxx |
|
Hi PCP Team,
Is there any way where we can translate a SQL query into a pmie rule which can be evaluated against a live stream of metrics data or against some pmlogger created archive. An example of what I am trying to achieve: SQL statement: select attribute_1, attribute_2 from table where attribute_1 = 'some_val1' and attribute_2 = 'some_val2' group by 'attribute_1'; equivalent metrics, that need to be processed: <appname>.<table>.<attribute_1> <appname>.<table>.<attribute_2> probable pmie rule: result = some_inst ( Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â $<appname>.<table>.<attribute_1>Â= 'some_val1' && Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â $<appname>.<table>.<attribute_1>Â= 'some_val2' ) -> alarm "some message" "%i "; The intended audience for this use-case is business users and analysts with basic SQL skill set. Thanks, Shirshendu Chakrabarti |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: pcp updates - pmdapapi update, Frank Ch. Eigler |
|---|---|
| Next by Date: | Re: pcp updates: pmdaproc, cgroups, books, Frank Ch. Eigler |
| Previous by Thread: | pcp updates: pmdaproc, cgroups, books, Nathan Scott |
| Next by Thread: | RE: [pcp] Converting and SQL statement into a PMIE rule for evaluation against pmlogger archives, Ken McDonell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |