Skip to content

Commit 7573275

Browse files
committed
Removing expandable sections and leaving 3 examples in code blocks
1 parent 62aeb99 commit 7573275

File tree

1 file changed

+7
-79
lines changed

1 file changed

+7
-79
lines changed

articles/azure-monitor/agents/data-collection-performance.md

Lines changed: 7 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -51,103 +51,31 @@ Performance counters data can be sent to the following locations.
5151

5252
## Log queries with performance records
5353

54-
The following table provides different examples of log queries that retrieve performance records.
54+
The following queries are examples to retrieve performance records.
5555

56-
| Query | Description |
57-
|:-------------------------------------------------------------|:------------------------------------------------|
58-
| Perf | All performance data |
59-
| Perf | where Computer == "MyComputer" | All performance data from a particular computer |
60-
| Perf | where CounterName == "Current Disk Queue Length" | All performance data for a particular counter |
61-
62-
### Option 1 - Table
63-
64-
<br>
65-
<details>
66-
<summary>Expand for more queries</summary>
67-
68-
| Query | Description |
69-
|:------|:------------|
70-
| Perf &#124; where ObjectName == "Processor" and CounterName == "% Processor Time" and InstanceName == "_Total" &#124; summarize AVGCPU = avg(CounterValue) by Computer | Average CPU utilization across all computers |
71-
| Perf &#124; where CounterName == "% Processor Time" &#124; summarize AggregatedValue = max(CounterValue) by Computer | Maximum CPU utilization across all computers |
72-
| Perf &#124; where ObjectName == "LogicalDisk" and CounterName == "Current Disk Queue Length" and Computer == "MyComputerName" &#124; summarize AggregatedValue = avg(CounterValue) by InstanceName | Average current disk queue length across all the instances of a given computer |
73-
| Perf &#124; where CounterName == "Disk Transfers/sec" &#124; summarize AggregatedValue = percentile(CounterValue, 95) by Computer | 95th percentile of disk transfers/sec across all computers |
74-
| Perf &#124; where CounterName == "% Processor Time" and InstanceName == "_Total" &#124; summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), Computer | Hourly average of CPU usage across all computers |
75-
| Perf &#124; where Computer == "MyComputer" and CounterName startswith_cs "%" and InstanceName == "_Total" &#124; summarize AggregatedValue = percentile(CounterValue, 70) by bin(TimeGenerated, 1h), CounterName | Hourly 70th percentile of every percent counter for a particular computer |
76-
| Perf &#124; where CounterName == "% Processor Time" and InstanceName == "_Total" and Computer == "MyComputer" &#124; summarize ["min(CounterValue)"] = min(CounterValue), ["avg(CounterValue)"] = avg(CounterValue), ["percentile75(CounterValue)"] = percentile(CounterValue, 75), ["max(CounterValue)"] = max(CounterValue) by bin(TimeGenerated, 1h), Computer | Hourly average, minimum, maximum, and 75-percentile CPU usage for a specific computer |
77-
| Perf &#124; where ObjectName == "MSSQL$INST2:Databases" and InstanceName == "master" | All performance data from the database performance object for the master database from the named SQL Server instance INST2 |
78-
</details>
79-
80-
### Option 2 - Code blocks
81-
82-
<br>
83-
<details>
84-
<summary>Expand for more queries</summary>
85-
86-
**Average CPU utilization across all computers**
87-
88-
```query
89-
Perf
90-
| where ObjectName == "Processor" and CounterName == "% Processor Time" and InstanceName == "_Total"
91-
| summarize AVGCPU = avg(CounterValue) by Computer
92-
```
93-
94-
**Maximum CPU utilization across all computers**
95-
96-
```query
97-
Perf
98-
| where CounterName == "% Processor Time"
99-
| summarize AggregatedValue = max(CounterValue) by Computer
100-
```
101-
102-
**Average current disk queue length across all the instances of a given computer**
103-
104-
```query
105-
Perf
106-
| where ObjectName == "LogicalDisk" and CounterName == "Current Disk Queue Length" and Computer == "MyComputerName"
107-
| summarize AggregatedValue = avg(CounterValue) by InstanceName
108-
```
109-
110-
**95th percentile of disk transfers/sec across all computers**
56+
#### All performance data from a particular computer
11157

11258
```query
11359
Perf
114-
| where CounterName == "Disk Transfers/sec"
115-
| summarize AggregatedValue = percentile(CounterValue, 95) by Computer
60+
| where Computer == "MyComputer"
11661
```
11762

118-
**Hourly average of CPU usage across all computers**
63+
#### Average CPU utilization across all computers
11964

12065
```query
12166
Perf
122-
| where CounterName == "% Processor Time" and InstanceName == "_Total"
123-
| summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), Computer
124-
```
125-
126-
**Hourly 70th percentile of every percent counter for a particular computer**
127-
128-
```query
129-
Perf
130-
| where Computer == "MyComputer" and CounterName startswith_cs "%" and InstanceName == "_Total"
131-
| summarize AggregatedValue = percentile(CounterValue, 70) by bin(TimeGenerated, 1h), CounterName
67+
| where ObjectName == "Processor" and CounterName == "% Processor Time" and InstanceName == "_Total"
68+
| summarize AVGCPU = avg(CounterValue) by Computer
13269
```
13370

134-
**Hourly average, minimum, maximum, and 75-percentile CPU usage for a specific computer**
71+
#### Hourly average, minimum, maximum, and 75-percentile CPU usage for a specific computer
13572

13673
```query
13774
Perf
13875
| where CounterName == "% Processor Time" and InstanceName == "_Total" and Computer == "MyComputer"
13976
| summarize ["min(CounterValue)"] = min(CounterValue), ["avg(CounterValue)"] = avg(CounterValue), ["percentile75(CounterValue)"] = percentile(CounterValue, 75), ["max(CounterValue)"] = max(CounterValue) by bin(TimeGenerated, 1h), Computer
14077
```
14178

142-
**All performance data from the database performance object for the master database from the named SQL Server instance INST2**
143-
144-
```query
145-
Perf
146-
| where ObjectName == "MSSQL$INST2:Databases" and InstanceName == "master"
147-
```
148-
149-
</details>
150-
15179
Additional query examples are available at [Queries for the Perf table](/azure/azure-monitor/reference/queries/perf).
15280

15381
## Next steps

0 commit comments

Comments
 (0)