Skip to content

Commit 906d181

Browse files
author
Corbin Phelps
authored
Increased index limit (#29)
1 parent 1d36710 commit 906d181

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## 0.2.2 - 2018-11-07
9+
### Changed
10+
- Increased index limit to 500
11+
812
## 0.2.1 - 2018-10-23
913
### Added
1014
- Additional descriptions for config parameters

src/elasticsearch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type argumentList struct {
2727

2828
const (
2929
integrationName = "com.newrelic.elasticsearch"
30-
integrationVersion = "0.2.1"
30+
integrationVersion = "0.2.2"
3131
)
3232

3333
var (

src/metrics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/newrelic/infra-integrations-sdk/log"
1111
)
1212

13-
const indexLimit = 100
13+
const indexLimit = 500
1414

1515
// populateMetrics wrapper to call each of the individual populate functions
1616
func populateMetrics(i *integration.Integration, client Client) {

src/metrics_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ func TestPopulateIndicesMetrics(t *testing.T) {
176176

177177
func TestSetIndicesStatsMetricsResponse_TooManyIndices(t *testing.T) {
178178
i := getTestingIntegration(t)
179-
indexResponse := make([]*IndexStats, 101)
179+
indexResponse := make([]*IndexStats, 501)
180180
indexName := "test-index"
181-
for i := 0; i < 101; i++ {
181+
for i := 0; i < 501; i++ {
182182
indexResponse[i] = &IndexStats{
183183
Name: &indexName,
184184
}

0 commit comments

Comments
 (0)