Skip to content

Instantly share code, notes, and snippets.

@tmonk42
Created August 5, 2014 22:00
Show Gist options
  • Save tmonk42/3b97abdde024586dc772 to your computer and use it in GitHub Desktop.
Save tmonk42/3b97abdde024586dc772 to your computer and use it in GitHub Desktop.
Test config for influxdb graphite database
[
{
"database": "graphite",
"spaces": [
{
"name": "raw",
"retentionPolicy": "1d",
"shardDuration": "1h",
"regex": "/.*/",
"replicationFactor": 2,
"split": 3
},
{
"name": "1m",
"retentionPolicy": "7d",
"shardDuration": "1d",
"regex": "/^1m.[a-zA-Z_]/",
"replicationFactor": 2,
"split": 3
},
{
"name": "5m",
"retentionPolicy": "400d",
"shardDuration": "4d",
"regex": "/^5m.[a-zA-Z_]/",
"replicationFactor": 2,
"split": 3
}
]
}
]
@tmonk42
Copy link
Author

tmonk42 commented Aug 5, 2014

"continuousQueries": [
"select mean(value) as value from /^vmstats./ group by time(1m) into 1m.:series_name",
"select mean(value) as value from /^vmstats.
/ 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