Skip to content

Instantly share code, notes, and snippets.

@Civil
Created August 20, 2014 09:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Civil/c7a66e2817213ccf7baa to your computer and use it in GitHub Desktop.
Save Civil/c7a66e2817213ccf7baa to your computer and use it in GitHub Desktop.
Test JSON to create shard spaces for graphite. Based on docs for influxdb
{
"spaces": [
{
"name": "everything_30d",
"retentionPolicy": "1h",
"shardDuration": "3d",
"regex": "/.*/",
"replicationFactor": 1,
"split": 1
},
{
"name": "rollups",
"retentionPolicy": "12h",
"shardDuration": "14h",
"regex": "/^5m_.*/",
"replicationFactor": 1,
"split": 1
}
],
"continuousQueries": [
"select time, mean(value) as value from /^([^0-9]+[^mhs]*)/ group by time(5m) into 5m_:series_name"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment