Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
linkerd: Disable inbuilt prometheus and grafana
Browse files Browse the repository at this point in the history
- Add new variable `prometheus_url` where user can provide the link to
  the external prometheus from where linkerd can scrape the metrics.

Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
  • Loading branch information
surajssd committed Nov 9, 2020
1 parent 014b63e commit 7564dde
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/components/linkerd/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ func init() {
}

type component struct {
ControllerReplicas int `hcl:"controller_replicas,optional"`
EnableMonitoring bool `hcl:"enable_monitoring,optional"`
ControllerReplicas int `hcl:"controller_replicas,optional"`
EnableMonitoring bool `hcl:"enable_monitoring,optional"`
PrometheusURL string `hcl:"prometheus_url,optional"`

Cert cert
}
Expand Down
7 changes: 7 additions & 0 deletions pkg/components/linkerd/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package linkerd
const chartValuesTmpl = `
enableMonitoring: {{.EnableMonitoring}}
global:
prometheusUrl: {{ .PrometheusURL }}
identityTrustAnchorsPEM: |
{{ .Cert.CA }}
Expand All @@ -30,6 +31,12 @@ identity:
keyPEM: |
{{ .Cert.Key }}
prometheus:
enabled: false
grafana:
enabled: false
# controller configuration
controllerReplicas: {{.ControllerReplicas}}
`
Expand Down

0 comments on commit 7564dde

Please sign in to comment.