Skip to content

Conversation

@missinglink
Copy link
Member

This PR allows the indexName to be configured when executing the pelias elastic stats command.

@arnesetzer sorry for all the back-and-forth on this, considering that the scope for this feature is fairly narrow (ie. blue green deployments) I would prefer not to complicate things too much by doing a bunch of refactoring, the cmd/elastic.sh script has an established method of overloading the defaults (ELASTIC_HOST) so adopting that method allows us to achieve the desired result by simply introducing ELASTIC_INDEX.

The ergonomics are maybe not as aesthetically pleasing as using command-line flags, but I don't want to introduce a change where some commands use env vars while others use flags, and this one using a mix of the two.

Again sorry for my poor direction on this, it took me a while to figure out.

closes #371
closes #372
closes pelias/schema#507

@missinglink missinglink merged commit 6f68054 into master Mar 12, 2025
@missinglink missinglink deleted the stats-configurable-indexname branch March 12, 2025 15:40
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.

pelias elastic stats has the default index hardcoded

3 participants