我想知道如何增加azure监视器向eventhub发送诊断设置的频率 . 我正在使用Redis资源中的诊断设置将指标转发到eventhub . 从那里他们被自定义监控 stack
摄取 .
诊断通过以下方式设置:
az monitor diagnostic-settings create -n eh-meh \ --resource $REDIS_ID --event-hub redis-metrics \ --event-hub-rule $EH_RULE_ID \ --metrics '[{"category": "AllMetrics", "enabled": true, "timeGrain": "PT1M"}]'
度量标准出现在eventhub中,但只出现在 5
分钟 . 我遇到the azure diagnostics schema,提到了 scheduledTransferPeriod
但是在指标中设置这个似乎并没有改变任何东西 .
1 回答
您无法增加诊断设置的频率 . 每个资源提供者(在您的情况下为Redis)负责发布事件,因此您可能会观察到某些服务比其他服务更频繁地发出事件 . 一般而言,目前,延迟约为5分钟 .
您引用的
scheduledTransferPeriod
不适用于Redis服务,因此它没有更改任何内容 .