Questa regola raccoglie il numero di byte usati per un database MySQL
Questa regola raccoglie i dati sulle prestazioni per il contatore delle prestazioni Database MySQL\ Spazio su disco in byte. I valori raccolti sono accessibili nelle viste Prestazioni. Questa metrica espone lo spazio totale su disco in byte per un database MySQL. Il valore restituito dall'agente viene calcolato sommando la metrica dello spazio su disco presente in information_schema per tutte le tabelle.
Target | Microsoft.MySQLServer.Database.Unix |
Category | PerformanceCollection |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Oss.WSMan.PerfCounterProvider.Filtered.TimedEnumerator | Default |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.MySQLServer.Database.Unix.DiskSpaceInBytes.Collection" Target="Microsoft.MySQLServer.Database.Unix" Remotable="true" Enabled="onStandardMonitoring">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Oss!Microsoft.Oss.WSMan.PerfCounterProvider.Filtered.TimedEnumerator">
<Interval>300</Interval>
<TargetSystem>$Target/Host/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/MySQL_Server_Database?__cimnamespace=root/mysql</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<ObjectName>MySQL Database</ObjectName>
<CounterName>Disk Space in Bytes</CounterName>
<InstanceName>$Target/Property[Type="Microsoft.MySQLServer.Database"]/InstanceID$</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='MySQL_Server_Database']/*[local-name(.)='InstanceID']</InstanceProperty>
<Value>$Data/WsManData/*[local-name(.)='MySQL_Server_Database']/*[local-name(.)='DiskSpaceInBytes']$</Value>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>