Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto create database for graphite if not specified #1930

Merged
merged 4 commits into from
Mar 12, 2015

Conversation

corylanou
Copy link
Contributor

The graphite endpoint will now auto create a database called graphite if no database is specified in the config.

If the system is set to auto create default retention policies (which it should if you aren't going to specify a database), then the retention policy of default for an INF duration is also created.

Additional refactoring in this PR:

  1. Added a SetLogOutput to the graphite servers.
  2. Log if write's fail

This PR is waiting on PR #1929 to be merged as it fixes a bug that prevents this feature from working.

Fixes #1745

@corylanou corylanou force-pushed the graphite-auto-create-db-rp branch from c515045 to a13b1db Compare March 12, 2015 16:22
@otoolep
Copy link
Contributor

otoolep commented Mar 12, 2015

Looks good.

corylanou added a commit that referenced this pull request Mar 12, 2015
Auto create database for graphite if not specified
@corylanou corylanou merged commit 65f2193 into master Mar 12, 2015
@corylanou corylanou deleted the graphite-auto-create-db-rp branch March 12, 2015 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto Create Database and Retention Policy Defaults for Graphite
2 participants