Skip to content

Commit

Permalink
fix: set correct elastic url
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelldon committed Aug 21, 2023
1 parent d7973ef commit 1e93299
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/zeebe-benchmark/test/golden/deployment.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
command: ["elasticsearch_exporter",
"--log.format=logfmt",
"--log.level=info",
"--es.uri=http://localhost:9200",
"--es.uri=http://elasticsearch-master:9200",
"--es.all",
"--es.indices",
"--es.indices_settings",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ spec:
release: "benchmark-test"
namespaceSelector:
matchNames:
- benchmark-65lu92
- benchmark-test
sampleLimit: 0
5 changes: 1 addition & 4 deletions charts/zeebe-benchmark/test/golden_elastic_exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ package test
import (
"benchmark-helm/charts/zeebe-benchmark/test/golden"
"path/filepath"
"strings"
"testing"

"github.com/gruntwork-io/terratest/modules/random"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
)
Expand All @@ -24,10 +22,9 @@ func TestGoldenElasticExporterDefaults(t *testing.T) {
suite.Run(t, &golden.TemplateGoldenTest{
ChartPath: chartPath,
Release: "benchmark-test",
Namespace: "benchmark-" + strings.ToLower(random.UniqueId()),
Namespace: "benchmark-test",
GoldenFileName: name,
Templates: []string{"charts/prometheus-elasticsearch-exporter/templates/" + name + ".yaml"},
SetValues: map[string]string{"retentionPolicy.enabled": "true"},
})
}
}
7 changes: 7 additions & 0 deletions charts/zeebe-benchmark/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,13 @@ camunda-platform:
scrapeInterval: 30s

prometheus-elasticsearch-exporter:
es:
## Address (host and port) of the Elasticsearch node we should connect to.
## This could be a local node (localhost:9200, for instance), or the address
## of a remote Elasticsearch server. When basic auth is needed,
## specify as: <proto>://<user>:<password>@<host>:<port>. e.g., http://admin:pass@localhost:9200.
##
uri: http://elasticsearch-master:9200
serviceMonitor:
## If true, a ServiceMonitor CRD is created for a prometheus operator
## https://github.com/coreos/prometheus-operator
Expand Down

0 comments on commit 1e93299

Please sign in to comment.