标签: azure-monitor

如何使用 Kusto 查询语言打印树?

下面是一个快速而乏味的解决方案。

如果您有更好的,请将其包含在您的答案中。

let tree_height = 15;
range i from -1 to tree_height * 2 step 2
| extend side_width = tree_height + 1 - i / 2
| extend side_space = strrep(" ", side_width)
| extend tree_part = case(i > 0, strcat("/", strrep("*", i), @"\"), " ^ ")
| project ta_da = strcat(side_space, tree_part, side_space)
Run Code Online (Sandbox Code Playgroud)
                 ^                 
                /*\                
               /***\               
              /*****\              
             /*******\             
            /*********\            
           /***********\           
          /*************\          
         /***************\         
        /*****************\        
       /*******************\       
      /*********************\      
     /***********************\     
    /*************************\    
   /***************************\   
  /*****************************\  
Run Code Online (Sandbox Code Playgroud)

如果您需要一些灵感:一棵库斯托圣诞树

kql azure-data-explorer azure-sentinel azure-monitor kusto-explorer

10
推荐指数
2
解决办法
905
查看次数

Application Insights Map 未在 Angular SPA 和 .Net 6 API 之间连接

我有一个 Angular 13 SPA,它调用我的 .Net 6 API,然后调用数据库。目前整个系统正在我的本地计算机上运行。

我将 Application Insights JS SDK 和 Angular 插件添加到我的 SPA 中并初始化它们

包.json

"@microsoft/applicationinsights-web": "2.7.4",
"@microsoft/applicationinsights-angularplugin-js": "2.8.0",
Run Code Online (Sandbox Code Playgroud)

应用程序组件.ts

export class AppComponent {
  title = 'app';
  constructor(
    private router: Router,
    private settings: SettingsService,
  ) {
    const aiInstrumentationKey = 'ApplicationInsights_InstrumentationKey';
    var angularPlugin = new AngularPlugin();
    const appInsights = new ApplicationInsights({
      config: {
        instrumentationKey: settings.settings.extensions[aiInstrumentationKey],
        distributedTracingMode: DistributedTracingModes.W3C,
        disableFetchTracking: false,
        enableCorsCorrelation: true,
        enableDebug: true,
        enableDebugExceptions: true,
        enableRequestHeaderTracking: true,
        enableResponseHeaderTracking: true,
        extensions: [angularPlugin],
        extensionConfig: {
          [angularPlugin.identifier]: { router: this.router } …
Run Code Online (Sandbox Code Playgroud)

c# azure-application-insights angular azure-monitor

6
推荐指数
1
解决办法
820
查看次数

在 Azure Monitor 中查看 opentelemetry 跟踪

我按照本指南将 opentelemetry 跟踪发送到 Azure Monitor(通过 Application Insights) 。

Application Insights 是否具有类似于 Jaeger、Zipkin 和 Tempo 提供的视图,或者我只能将跟踪作为日志条目查看在表中吗?

azure azure-application-insights open-telemetry azure-monitor

5
推荐指数
1
解决办法
1453
查看次数

KQL 查询 - 在 where 子句中相对选择今天的数据

我需要一种方法来在 Azure Monitor 中选择“自午夜以来”的数据集 - 例如相对于当天。

使用 ago(1d) 显然不能解决问题:)

StorageBlobLogs
    | where TimeGenerated > ago(1d) and StatusText contains "success"
Run Code Online (Sandbox Code Playgroud)

干杯

azure-log-analytics kql azure-monitor

3
推荐指数
1
解决办法
1627
查看次数

如何将 URL 中的工作簿参数传递到 Azure Monitor 工作簿?

我想使用 url 中传递的参数打开 Azure Monitor 工作簿。例如,要打开名为WorkBook1并传入Parameter1withValue1Parameter2with的工作簿Value2,我希望能够执行以下操作:

https://portal.azure.com/.../workbook/WorkbookTemplateName/WorkBook1?Parameter1=Value1&Parameter2=Value2
Run Code Online (Sandbox Code Playgroud)

此功能似乎没有在任何地方记录,但似乎应该存在。是否可以将 URL 中的工作簿参数传递到 Azure Monitor Notebook?

azure-monitor-workbooks azure-monitor

2
推荐指数
1
解决办法
1687
查看次数

Azure Monitor doesn't list all my subscriptions when adding new resource alert

I am in Azure Monitor, I select the subscription filter to view my existing alerts. I then click add new alert, select the scope / resources I want to create the rule for, but I am not seeing all my subscriptions in the drop down.

我是否缺少权限?我已经拥有缺少的订阅的“贡献者”角色。

Azure 监视器屏幕截图

azure azure-monitoring azure-monitor

1
推荐指数
1
解决办法
697
查看次数