Skip to content

Instantly share code, notes, and snippets.

@rafrombrc
Last active August 29, 2015 14:06
Show Gist options
  • Save rafrombrc/c0a983dc31d4aac1e6f3 to your computer and use it in GitHub Desktop.
Save rafrombrc/c0a983dc31d4aac1e6f3 to your computer and use it in GitHub Desktop.

Revisions

  1. rafrombrc revised this gist Sep 25, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,9 @@
    [TcpInput]
    address = ":8325"
    decoder = "StatsToFieldsDecoder"
    delimiter = "pdxnplogmq01.ping.ping_droprate.127_0_0_1\n"
    parser_type = "regexp"
    delimiter = 'pdxnplogmq01\.ping\.ping_droprate\.127_0_0_1'
    delimiter_location = "start"

    [StatsToFieldsDecoder]

  2. rafrombrc revised this gist Sep 25, 2014. 1 changed file with 0 additions and 11 deletions.
    11 changes: 0 additions & 11 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -3,19 +3,8 @@ address = ":8325"
    decoder = "StatsToFieldsDecoder"
    delimiter = "pdxnplogmq01.ping.ping_droprate.127_0_0_1\n"

    [stats_multi_decoder]
    type = "MultiDecoder"
    cascade_strategy = "all"
    log_sub_errors = true
    subs = ["StatsToFieldsDecoder"]

    [StatsToFieldsDecoder]

    [scribble_statmetric]
    type = "ScribbleDecoder"
    [scribble_statmetric.message_fields]
    Type = "heka.statmetric"

    [stat_graph]
    type = "SandboxFilter"
    filename = "lua_filters/stat_graph.lua"
  3. rafrombrc revised this gist Sep 25, 2014. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,14 @@
    [TcpInput]
    address = ":8325"
    decoder = "stats_multi_decoder"
    decoder = "StatsToFieldsDecoder"
    delimiter = "pdxnplogmq01.ping.ping_droprate.127_0_0_1\n"

    [stats_multi_decoder]
    type = "MultiDecoder"
    cascade_strategy = "all"
    log_sub_errors = true
    subs = ["StatsToFieldsDecoder"]

    [StatsToFieldsDecoder]

    [scribble_statmetric]
  4. rafrombrc revised this gist Sep 25, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    [TcpInput]
    address = ":8325"
    decoder = "stats_multi_decoder"
    delimiter = "pdxnplogmq01.ping.ping_droprate.127_0_0_1"
    delimiter = "pdxnplogmq01.ping.ping_droprate.127_0_0_1\n"

    [stats_multi_decoder]
    type = "MultiDecoder"
  5. rafrombrc created this gist Sep 25, 2014.
    33 changes: 33 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    [TcpInput]
    address = ":8325"
    decoder = "stats_multi_decoder"
    delimiter = "pdxnplogmq01.ping.ping_droprate.127_0_0_1"

    [stats_multi_decoder]
    type = "MultiDecoder"
    cascade_strategy = "all"
    log_sub_errors = true
    subs = ["StatsToFieldsDecoder"]
    [StatsToFieldsDecoder]

    [scribble_statmetric]
    type = "ScribbleDecoder"
    [scribble_statmetric.message_fields]
    Type = "heka.statmetric"

    [stat_graph]
    type = "SandboxFilter"
    filename = "lua_filters/stat_graph.lua"
    ticker_interval = 1
    preserve_data = false
    message_matcher = "Type == 'NetworkInput'"

    [stat_graph.config]
    num_rows = 300
    secs_per_row = 1
    stats = "pdxnplogmq01.load.load.shortterm pdxnplogmq01.load.load.midterm"
    stat_labels = "cpu_load_shortterm cpu_load_midterm"
    anomaly_config = 'roc("pdxnplogmq01.load.load.shortterm", 1, 15, 0, 1.5, true, false)'

    [DashboardOutput]
    ticker_interval = 1