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

[WIP] Removes tenantId in Grafana config #566

Closed
wants to merge 5 commits into from
Closed
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
1 change: 0 additions & 1 deletion pkg/monitors/grafana/grafana-monitor.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package grafana

Check failure on line 1 in pkg/monitors/grafana/grafana-monitor.go

View workflow job for this annotation

GitHub Actions / Pull Request

: # github.com/stakater/IngressMonitorController/v2/pkg/monitors/grafana [github.com/stakater/IngressMonitorController/v2/pkg/monitors/grafana.test]

import (
"context"
Expand Down Expand Up @@ -92,7 +92,7 @@
}
checkId = idResult
}
var tenantID int64

Check failure on line 95 in pkg/monitors/grafana/grafana-monitor.go

View workflow job for this annotation

GitHub Actions / Pull Request

tenantID declared and not used) (typecheck)

Check failure on line 95 in pkg/monitors/grafana/grafana-monitor.go

View workflow job for this annotation

GitHub Actions / Pull Request

tenantID declared and not used (typecheck)
grafanaConfig, _ := monitor.Config.(*endpointmonitorv1alpha1.GrafanaConfig)
if grafanaConfig != nil {
tenantID = grafanaConfig.TenantId
Expand All @@ -103,7 +103,6 @@
Target: monitor.URL,
Job: monitor.Name,
Frequency: service.frequency,
TenantId: tenantID,
Timeout: 2000,
Enabled: true,
Probes: probeIDs,
Expand Down
Loading