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

.WithReporting(x=>x.WithElasticSearch() Index naming #125

Open
amccool opened this issue Jan 20, 2016 · 0 comments
Open

.WithReporting(x=>x.WithElasticSearch() Index naming #125

amccool opened this issue Jan 20, 2016 · 0 comments

Comments

@amccool
Copy link

amccool commented Jan 20, 2016

when looking at this for setting up reporting to ElasticSearch
.WithElasticSearch(<addr>, 9200, "metrics", TimeSpan.FromSeconds(1))

The argument for the index name is creating a single index, rather than date based index. By using a single index I don't have a way to delete or close older indexes and my elasticsearch server starts to bog down

.WithElasticSearch(<addr>, 9200, ()=>{ return "metrics-" + DateTime.UtcNow.ToString("yyyy-MM-dd");}, TimeSpan.FromSeconds(1))

or something that appended the date to the index name would allow me to roll off the older indexes

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

No branches or pull requests

1 participant