Skip to content

Instantly share code, notes, and snippets.

@XANi
Created August 29, 2014 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XANi/b22ad3d1174bdc851281 to your computer and use it in GitHub Desktop.
Save XANi/b22ad3d1174bdc851281 to your computer and use it in GitHub Desktop.
shardspace.json
{
"spaces": [
{
"name": "short_term",
"retentionPolicy": "30d",
"shardDuration": "1d",
"regex": "/^.*/",
"replicationFactor": 2,
"split": 1
},
{
"name": "long_term",
"retentionPolicy": "inf",
"shardDuration": "7d",
"regex": "/^10m.*/",
"replicationFactor": 2,
"split": 1
}
],
"continuousQueries": [
"select mean(value) as value, percentile(value, 95) as pct_95, min(value) as min, max(value) as max, stddev(value) as stddev from /^[a-zA-Z].*/ group by time(10m) into 10m.:series_name"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment