Dogodek
17. mar., 21h - 21. mar., 10h
Pridružite se nizu srečanj in ustvarite prilagodljive rešitve za AI na podlagi primerov uporabe v resničnem svetu s kolegi razvijalci in strokovnjaki.
Prijavite se zdajTa brskalnik ni več podprt.
Izvedite nadgradnjo na Microsoft Edge, če želite izkoristiti vse prednosti najnovejših funkcij, varnostnih posodobitev in tehnične podpore.
APPLIES TO: Developer | Premium
This article provides details for configuring cloud metrics and logs for the self-hosted gateway.
The self-hosted gateway has to be associated with an API management service and requires outbound TCP/IP connectivity to Azure on port 443. The gateway leverages the outbound connection to send telemetry to Azure, if configured to do so.
By default, the self-hosted gateway emits a number of metrics through Azure Monitor, same as the managed gateway in the cloud.
The feature can be enabled or disabled using the telemetry.metrics.cloud
key in the ConfigMap of the gateway Deployment. Below is a breakdown of the available configurations:
Field | Default | Description |
---|---|---|
telemetry.metrics.cloud | true |
Enables logging through Azure Monitor. Value can be true , false . |
Here is a sample configuration:
apiVersion: v1
kind: ConfigMap
metadata:
name: contoso-gateway-environment
data:
config.service.endpoint: "<contoso-gateway-management-endpoint>"
telemetry.metrics.cloud: "true"
The self-hosted gateway currently emits the following metrics through Azure Monitor:
Metric | Description |
---|---|
Requests | Number of API requests in the period |
Duration of gateway requests | Number of milliseconds from the moment gateway received request until the moment response sent in full |
Duration of backend requests | Number of milliseconds spent on overall backend IO (connecting, sending and receiving bytes) |
The self-hosted gateway currently does not send diagnostic logs to the cloud. However, it is possible to configure and persist logs locally where the self-hosted gateway is deployed.
If a gateway is deployed in Azure Kubernetes Service, you can enable Azure Monitor for containers to collect logs from your containers and view them in Log Analytics.
Dogodek
17. mar., 21h - 21. mar., 10h
Pridružite se nizu srečanj in ustvarite prilagodljive rešitve za AI na podlagi primerov uporabe v resničnem svetu s kolegi razvijalci in strokovnjaki.
Prijavite se zdajUsposabljanje
Vodeno učenje
Develop an instrumentation strategy - Training
Develop an effective instrumentation strategy through logging, telemetry, and monitoring and prepare for Exam AZ-400: Designing and Implementing Microsoft DevOps Solutions.
Potrdilo
Microsoft Certified: Azure Administrator Associate - Certifications
Demonstrate key skills to configure, manage, secure, and administer key professional functions in Microsoft Azure.
Dokumentacija
Reference - Self-hosted gateway container settings - Azure API Management
Reference for the required and optional settings to configure the Azure API Management self-hosted gateway.
Configure local metrics and logs for Azure API Management self-hosted gateway
Learn how to configure local metrics and logs for Azure API Management self-hosted gateway on a Kubernetes cluster.
Self-hosted gateway on Kubernetes in production
Learn about guidance to run an API Management self-hosted gateway on Kubernetes for production workloads