HueiFeng

Microsoft MVP

Kubernetes


使用dotnet-monitor分析在Kubernetes的应用程序:Sidecar模式

dotnet-monitor可以在Kubernetes中作为Sidecar运行,Sidecar是一个容器,它与应用程序在同一个Pod中运行,利用Sidecar模式使我们可以诊断及监控应用程序。 如下图所示,这是我们最终要实现的目标,通过可视化界面查看应用程序的指标信息。 file 应用服务 创建dotnetmonitor.yaml文件,如下所示。 apiVersion: apps/v1 kind: Deployment metadata: name: dotnet-monitor-example spec: replicas: 3 selector: matchLabels: app: dotnet-monitor-example template: metadata: annotations: prometheus. …

.NET Kubernetes

  • 1