我希望擴展我的 Web 應用程式的功能,可以顯示自定義 Azure 日志記錄查詢的結果,如下所示:
let apiIds = KubePodInventory
| where ServiceName == "my-service-name"
| distinct ContainerID;
ContainerLog
| where ContainerID in (apiIds)
and LogEntry contains ("my custom query")
| order by TimeGenerated desc
| project TimeGenerated, LogEntry
一個很好的補充是也有實時日志記錄。
但是,我不知道從哪里開始。有人對這個想法有(好/壞)經驗嗎?
uj5u.com熱心網友回復:
(如評論中所述)
您可以在您的應用程式中使用 Azure Monitor 查詢 SDK https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/monitor/Azure.Monitor.Query
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/458994.html
標籤:天蓝色 Kubernetes 日志记录 溪流
上一篇:Envvar在一種作業(Kubernetes)中的scipt/command中不可用
下一篇:如何使用crictl獲取懸空影像
