feat: Add Azure Kusto (ADX) health check #1068
Draft
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.
What does this PR do?
Adds health check support for Azure Kusto (Azure Data Explorer) using the
Microsoft.Azure.Kusto.DataSDK.Core Implementation:
KustoAvailableHealthCheck- Executes.show databasesquery viaICslQueryProviderto verify cluster connectivityKustoAvailableOptions- Supports both connection string and cluster URI configuration with optional database name and timeoutKustoAvailableConfigure- Validates configuration (connection string/URI required, timeout >= -1, URI must be absolute)DependencyInjectionExtensions.AddKustoAvailability()- Registers health check with default tagsazure,kusto,adxUsage:
Test Coverage:
Technical Notes:
global::prefix for Kusto namespaces to avoid collision withNetEvolve.HealthChecks.Azure.KustonamespaceICslQueryProviderin finally blockWhy is it important?
Azure Kusto is a core data analytics service in Azure. Monitoring cluster connectivity is essential for applications depending on ADX for real-time analytics and telemetry.
Related issues
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
172.19.0.1analytics.localstack.cloud/opt/code/localstack/.venv/bin/python -m localstack.runtime.main(dns block)api.localstack.cloudassets.localstack.cloudlocalhost.localstack.clouds3.localhost.localstack.cloudsbsfe.0/Eventhubs_Emulator/Microsoft.Cloud.EventHub.Emulator.Host dotnet Microsoft.Cloud.EventHub.Emulator.Host.dll(dns block)westus-0.in.applicationinsights.azure.com/home/REDACTED/work/healthchecks/healthchecks/tests/NetEvolve.HealthChecks.Tests.Integration/bin/Debug/net9.0/NetEvolve.HealthChecks.Tests.Integration --internal-msbuild-node /tmp/ebeab8c89f844592849fac9f218b60bd(dns block)/home/REDACTED/work/healthchecks/healthchecks/tests/NetEvolve.HealthChecks.Tests.Integration/bin/Debug/net8.0/NetEvolve.HealthChecks.Tests.Integration --internal-msbuild-node /tmp/3c884d81a05b4689a92ddc37b9856b9f(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.