Chukwa
  1. Chukwa
  2. CHUKWA-13

Support SQL macros in Chukwa Charting

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Redhat EL 5.1, Java 6

      Description

      In Chukwa Database aggregator, we could execute SQL statement which looks like:

      insert into [cluster_system_metrics] (select [avg(system_metrics)] from [system_metrics] where timestamp between [past_10_minutes] and [now]);

      This new feature is to bring macro language to HICC charting. The user can write statement like:

      select timestamp,host,load_5 from [system_metrics] where timestamp between [start] and [end];

      This statement will automatically expand to:

      select timestamp, host, load_5 from system_metrics_2045_week where timestamp between '2009-03-02 00:00:00' and '2009-03-03 00:00:00';

        Activity

        Hide
        Eric Yang added a comment -
        • Create a new Macro class for macro substitution.
        • Changed Aggregator to use Macro class.
        • Added macro substitution support to Chukwa Charting.
        • Added Macro test case.
        Show
        Eric Yang added a comment - Create a new Macro class for macro substitution. Changed Aggregator to use Macro class. Added macro substitution support to Chukwa Charting. Added Macro test case.
        Hide
        Ari Rabkin added a comment -

        This patch has gone stale; Eric, can you regenerate?

        Show
        Ari Rabkin added a comment - This patch has gone stale; Eric, can you regenerate?
        Hide
        Eric Yang added a comment -

        Regenerate patch with updated indentation.

        Show
        Eric Yang added a comment - Regenerate patch with updated indentation.
        Hide
        Eric Yang added a comment -
        • Create a new Macro class for macro substitution.
        • Changed Aggregator to use Macro class.
        • Added macro substitution support to Chukwa Charting.
        • Added Macro test case.
        Show
        Eric Yang added a comment - Create a new Macro class for macro substitution. Changed Aggregator to use Macro class. Added macro substitution support to Chukwa Charting. Added Macro test case.
        Hide
        Eric Yang added a comment -

        Raise priority for 0.1.2 release.

        Show
        Eric Yang added a comment - Raise priority for 0.1.2 release.
        Hide
        Ari Rabkin added a comment -

        It looks like the Macro class didn't make it into the patch...

        Show
        Ari Rabkin added a comment - It looks like the Macro class didn't make it into the patch...
        Hide
        Ari Rabkin added a comment -

        pending addition of Macro class.

        Show
        Ari Rabkin added a comment - pending addition of Macro class.
        Hide
        Eric Yang added a comment -

        add Macro.java into the patch.

        Show
        Eric Yang added a comment - add Macro.java into the patch.
        Hide
        Eric Yang added a comment -

        Include Macro.java in the patch.

        Show
        Eric Yang added a comment - Include Macro.java in the patch.
        Hide
        Eric Yang added a comment -

        I just committed this. Close as resolved.

        Show
        Eric Yang added a comment - I just committed this. Close as resolved.
        Hide
        Ari Rabkin added a comment -

        Note that in the future, this should probably come with a modification to CHANGES.txt, and also perhaps a release note.

        Show
        Ari Rabkin added a comment - Note that in the future, this should probably come with a modification to CHANGES.txt, and also perhaps a release note.
        Hide
        Eric Yang added a comment -

        It's recommended by Owen that batching changes and commit CHANGES.txt weekly is better than per jira.
        The changes are tracked in CHANGES.txt.

        Show
        Eric Yang added a comment - It's recommended by Owen that batching changes and commit CHANGES.txt weekly is better than per jira. The changes are tracked in CHANGES.txt.

          People

          • Assignee:
            Eric Yang
            Reporter:
            Eric Yang
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development