Skip to main content
Glama

Azure MCP Server

Official
MIT License
1,161
  • Linux
  • Apple
MetricsQueryClientService.cs1.15 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Azure.Monitor.Query; using AzureMcp.Core.Options; using AzureMcp.Core.Services.Azure; using AzureMcp.Core.Services.Azure.Tenant; namespace AzureMcp.Monitor.Services; public class MetricsQueryClientService(ITenantService tenantService) : BaseAzureService(tenantService), IMetricsQueryClientService { public async Task<MetricsQueryClient> CreateClientAsync(string? tenant = null, RetryPolicyOptions? retryPolicy = null) { var credential = await GetCredential(tenant); var options = AddDefaultPolicies(new MetricsQueryClientOptions()); if (retryPolicy != null) { options.Retry.Delay = TimeSpan.FromSeconds(retryPolicy.DelaySeconds); options.Retry.MaxDelay = TimeSpan.FromSeconds(retryPolicy.MaxDelaySeconds); options.Retry.MaxRetries = retryPolicy.MaxRetries; options.Retry.Mode = retryPolicy.Mode; options.Retry.NetworkTimeout = TimeSpan.FromSeconds(retryPolicy.NetworkTimeoutSeconds); } return new MetricsQueryClient(credential, options); } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Azure/azure-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server