-
Notifications
You must be signed in to change notification settings - Fork 153
ARO-26057: add ADX Grafana datasource provisioning #4878
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
Open
swiencki
wants to merge
12
commits into
main
Choose a base branch
from
adx-grafana-datasource-upstream
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f942386
monitoring: add adx grafana datasource rollout
swiencki ede7c32
monitoring: clean up kusto grafana datasources
swiencki c137440
monitoring: harden kusto cleanup grafana wait
swiencki 4725fbb
monitoring: fail adx datasource shell pipelines
swiencki 07579fa
monitoring: externalize adx datasource shell step
swiencki d8fe167
monitoring: use grafanactl for ADX datasources
swiencki b3d6d5f
monitoring: constrain geography global output
swiencki 0b702b5
monitoring: fix geography pipeline metadata
swiencki aa18f33
monitoring: restore shared global metadata
swiencki 297e861
monitoring: use typed GrafanaDatasources for ADX
swiencki 1b32952
monitoring: use real geo short ID in ADX tests
swiencki 4d47166
ARO-26057: consolidate Grafana datasource provisioning into region pi…
swiencki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,13 +60,64 @@ resourceGroups: | |
| maximumRetryCount: 3 | ||
| durationBetweenRetries: 1m | ||
| grafanaName: "{{ .monitoring.grafanaName }}" | ||
| grafanaResourceId: | ||
| input: | ||
| resourceGroup: global | ||
| step: output | ||
| name: grafanaResourceId | ||
| # ADX datasource reconciliation. The triple-AND gate is intentional: | ||
| # adxDatasourceEnabled is the feature flag, kusto.manageInstance is | ||
| # the per-region "this region owns the geo's Kusto cluster" marker | ||
| # (mirrors the per-region allowlist that the deleted geography-level | ||
| # step encoded as executionConstraints), and arobit.kusto.enabled is | ||
| # what kusto-lookup.bicep gates on for the kustoUri output. Today | ||
| # exactly one region per geoShortId has manageInstance=true; if that | ||
| # invariant ever changes, the geographies allowlist below would | ||
| # need to be region-aware to avoid two regions racing to reconcile | ||
| # the same global Grafana datasource. | ||
| adx: | ||
| enabled: | ||
| value: "{{ and .monitoring.adxDatasourceEnabled .kusto.manageInstance .arobit.kusto.enabled }}" | ||
| deleteWhenDisabled: true | ||
|
swiencki marked this conversation as resolved.
|
||
| clusterUrl: | ||
| input: | ||
| resourceGroup: kusto | ||
| step: output | ||
| name: kustoUri | ||
| defaultDatabase: | ||
| configRef: kusto.serviceLogsDatabase | ||
| datasourceName: | ||
| value: "kusto-{{ .environmentName }}-{{ .azureGeoShortId }}" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should reflect the actual source name. |
||
| geographies: | ||
| configRef: monitoring.adxDatasourceGeographies | ||
| dataConsistency: strongconsistency | ||
| # Retry signature matches any Grafana datasource API mutation in this | ||
| # step (POST/PUT/DELETE on /api/datasources*), not only ADX. If | ||
| # AzureMonitor reconcile is ever explicitly toggled here, the same | ||
| # retry policy applies to those calls too. | ||
| automatedRetry: | ||
| errorContainsAny: | ||
| - "grafana API POST /api/datasources" | ||
| - "grafana API PUT /api/datasources/" | ||
| - "grafana API DELETE /api/datasources/name/" | ||
| - "failed with status 429" | ||
| - "failed with status 500" | ||
| - "failed with status 502" | ||
| - "failed with status 503" | ||
| - "failed with status 504" | ||
| maximumRetryCount: 5 | ||
| durationBetweenRetries: 2m | ||
|
swiencki marked this conversation as resolved.
|
||
| identityFrom: | ||
| resourceGroup: global | ||
| step: output | ||
| name: globalMSIId | ||
| dependsOn: | ||
| - resourceGroup: regional | ||
| step: output | ||
| - resourceGroup: global | ||
| step: output | ||
| - resourceGroup: kusto | ||
| step: output | ||
| - name: kusto | ||
| resourceGroup: '{{ .kusto.rg }}' | ||
| subscription: '{{ .global.subscription.key }}' | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.