Skip to content

Commit

Permalink
fix: rm azure monitor (#1584)
Browse files Browse the repository at this point in the history
Co-authored-by: ElderMatt <matthew.elderhorst@hotmail.com>
Co-authored-by: Jehoszafat Zimnowoda <jehoszafat.zimnowoda@redkubes.com>
  • Loading branch information
3 people authored Apr 29, 2024
1 parent 6c0adc3 commit 056a3cc
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 9,973 deletions.
2,202 changes: 0 additions & 2,202 deletions charts/grafana-dashboards/azure/azure-appgw.json

This file was deleted.

2,312 changes: 0 additions & 2,312 deletions charts/grafana-dashboards/azure/azure-mariadb.json

This file was deleted.

3,265 changes: 0 additions & 3,265 deletions charts/grafana-dashboards/azure/azure-redis.json

This file was deleted.

2,121 changes: 0 additions & 2,121 deletions charts/grafana-dashboards/azure/azure-storage.json

This file was deleted.

1 change: 0 additions & 1 deletion charts/grafana-dashboards/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
folders:
- argo
- azure
- cloudnative-pg
- falco
- falco-teams
Expand Down
3 changes: 0 additions & 3 deletions helmfile.d/helmfile-60.teams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@ releases:
tag: 'http.path'
lokiSearch:
datasourceUid: 'loki'
{{- if ($team | get "azureMonitor" ($v | get "azure.monitor" nil)) }}
- {{- tpl (readFile "../helmfile.d/snippets/azure-monitor.gotmpl") ($team | get "azureMonitor" ($v | get "azure.monitor")) | toString | nindent 14 }}
{{- end }}
{{- if has "msteams" ($team | get "alerts.receivers" list) }}
- name: prometheus-msteams-{{ $teamId }}
installed: {{ $team | get "managedMonitoring.prometheus" false }}
Expand Down
19 changes: 0 additions & 19 deletions helmfile.d/snippets/azure-monitor.gotmpl

This file was deleted.

2 changes: 1 addition & 1 deletion tests/fixtures/env/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ cluster:
k8sContext: otomi-eks-demo
name: demo
owner: redkubes
provider: linode
provider: azure
region: eu-central-1
2 changes: 2 additions & 0 deletions values-changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,5 @@ changes:
- 'apps.prometheus.remoteWrite.otomiThanos'
- 'apps.ingress-azure'
- 'otomi.hasCloudLB'
- 'monitor'
- 'azureMonitor'
46 changes: 0 additions & 46 deletions values-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,47 +212,6 @@ definitions:
- AzureChinaCloud
- AzureUSGovernment
- AzureGermanCloud
monitor:
additionalProperties: false
properties:
appInsightsApiKey:
$ref: '#/definitions/azure/definitions/clientSecret'
title: AppInsights api key
description: An Azure AppInsights client secret.
appInsightsAppId:
$ref: '#/definitions/azure/definitions/clientId'
title: AppInsights app id
azureLogAnalyticsSameAs:
title: LogAnalytics using same creds?
type: boolean
default: true
clientId:
$ref: '#/definitions/azure/definitions/clientId'
clientSecret:
$ref: '#/definitions/azure/definitions/clientSecret'
logAnalyticsClientId:
$ref: '#/definitions/azure/definitions/clientId'
title: LogAnalytics client id
description: An Azure client secret.
logAnalyticsClientSecret:
$ref: '#/definitions/azure/definitions/clientSecret'
title: LogAnalytics client secret
description: An Azure client secret.
logAnalyticsTenantId:
$ref: '#/definitions/azure/definitions/tenantId'
title: LogAnalytics tenant id
description: An Azure tenant id.
logAnalyticsDefaultWorkspace:
title: LogAnalytics default workspace to show
description: An Azure LogAnalytics workspace.
type: string
subscriptionId:
$ref: '#/definitions/azure/definitions/subscriptionId'
tenantId:
$ref: '#/definitions/azure/definitions/tenantId'
required:
- clientId
- clientSecret
tenantId:
title: Azure tenant id
description: An Azure tenant id.
Expand Down Expand Up @@ -1175,8 +1134,6 @@ definitions:
properties:
shortcuts:
$ref: '#/definitions/shortcuts'
azureMonitor:
$ref: '#/definitions/azure/definitions/monitor'
backups:
type: array
items:
Expand Down Expand Up @@ -1679,9 +1636,6 @@ properties:
default: false
description: Indicates Azure Application Gateway Ingress Controller add-on is installed by AKS.
type: boolean
monitor:
$ref: '#/definitions/azure/definitions/monitor'

cloud:
additionalProperties: true
properties:
Expand Down
3 changes: 0 additions & 3 deletions values/prometheus-operator/prometheus-operator.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,6 @@ grafana:
datasourceUid: 'loki'
{{- end }}
{{- end }}
{{- if $v | get "azure.monitor" nil }}
- {{- tpl (readFile "../../helmfile.d/snippets/azure-monitor.gotmpl") $v.azure.monitor | toString | nindent 6 }}
{{- end }}
adminPassword: {{ $g | get "adminPassword" $v.otomi.adminPassword }}
grafana.ini: {{- $grafanaIni | nindent 4 }}
server:
Expand Down

0 comments on commit 056a3cc

Please sign in to comment.