Documentation
¶
Overview ¶
Copyright (c) 2014, Percona LLC and/or its affiliates. All rights reserved.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>
Index ¶
- Variables
- func StrToFloat(s string) float64
- type Config
- type Monitor
- func (m *Monitor) Config() interface{}
- func (m *Monitor) ProcDiskstats(content []byte) ([]mm.Metric, error)
- func (m *Monitor) ProcLoadavg(content []byte) ([]mm.Metric, error)
- func (m *Monitor) ProcMeminfo(content []byte) ([]mm.Metric, error)
- func (m *Monitor) ProcStat(content []byte) ([]mm.Metric, error)
- func (m *Monitor) ProcVmstat(content []byte) ([]mm.Metric, error)
- func (m *Monitor) Start(tickChan chan time.Time, collectionChan chan *mm.Collection) error
- func (m *Monitor) Status() map[string]string
- func (m *Monitor) Stop() error
- func (m *Monitor) TickChan() chan time.Time
Constants ¶
This section is empty.
Variables ¶
var CPUStates []string = []string{"user", "nice", "system", "idle", "iowait", "irq", "softirq", "steal", "guest", "guestlow"}
Keep CPUStates and nCPUStates in sync, else Go will panic accessing index out of range.