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

add cluster for metrics #24

Merged
merged 3 commits into from
Jun 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
# Dependency directories (remove the comment below to include it)
vendor/
.idea/
# nebula-stats-exporter exec binary file
nebula-stats-exporter

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ all: check build push clean
check: fmt vet lint

build:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build nebula-stats-exporter.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o nebula-stats-exporter main.go
docker build -t $(DockerUser)/nebula-stats-exporter:$(VERSION) .

push:
Expand Down
5 changes: 4 additions & 1 deletion charts/nebula-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
["--listen-address=0.0.0.0:{{ .Values.startUp.listenPort }}", "--namespace={{ .Release.Namespace }}", "--max-request={{ .Values.startUp.maxRequests }}"]
- "--listen-address=0.0.0.0:{{ .Values.startUp.listenPort }}"
- "--namespace={{ .Release.Namespace }}"
- "--cluster={{ .Values.cluster }}"
- "--max-request={{ .Values.startUp.maxRequests }}"
ports:
- name: exporter-port
containerPort: {{ .Values.startUp.listenPort }}
Expand Down
2 changes: 2 additions & 0 deletions charts/nebula-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
nameOverride: ""
fullnameOverride: ""

cluster: ""

replicaCount: 1

startUp:
Expand Down
Loading