Skip to content

Commit

Permalink
added a variable for storing periodic table duration as an int to be …
Browse files Browse the repository at this point in the history
…able to reuse it
  • Loading branch information
sandeepsukhani committed Aug 28, 2019
1 parent f20244d commit ce3b1e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion production/ksonnet/loki/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
],

table_prefix: $._config.namespace,
index_period_hours: 168, // 1 week

// Bigtable variables
bigtable_instance: error 'must specify bigtable instance',
Expand Down Expand Up @@ -196,7 +197,7 @@
schema: 'v9',
index: {
prefix: '%s_index_' % $._config.table_prefix,
period: '168h',
period: '%dh' % $._config.index_period_hours,
},
}],
},
Expand Down

0 comments on commit ce3b1e4

Please sign in to comment.