Documentation ¶
Overview ¶
Copyright 2018 The JIMDB Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func New() monitoring.Monitor
- type EmptyAlarm
- type MKey
- type Monitor
- func (m *Monitor) Alive()
- func (m *Monitor) GetAlarm(nameSpace, subSystem, name string, lvs ...string) monitoring.Alarm
- func (m *Monitor) GetCluster() string
- func (m *Monitor) GetCounter(nameSpace, subSystem, name string, lvs ...string) monitoring.Counter
- func (m *Monitor) GetGauge(nameSpace, subSystem, name string, lvs ...string) monitoring.Gauge
- func (m *Monitor) GetInstance() string
- func (m *Monitor) GetPushGatewayUrl() string
- func (m *Monitor) Init(cluster, instance string, pushGateway string, pushInterval time.Duration)
- func (m *Monitor) Push()
- func (m *Monitor) RegisterCounter(nameSpace, subSystem, name string, labelNames []string)
- func (m *Monitor) RegisterGauge(nameSpace, subSystem, name string, labelNames []string)
- func (m *Monitor) Start()
- func (m *Monitor) Stop()
Constants ¶
View Source
const Name = "prometheus"
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() monitoring.Monitor
Types ¶
type EmptyAlarm ¶
type EmptyAlarm struct { }
func (*EmptyAlarm) Alarm ¶
func (a *EmptyAlarm) Alarm(string)
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func (*Monitor) GetAlarm ¶
func (m *Monitor) GetAlarm(nameSpace, subSystem, name string, lvs ...string) monitoring.Alarm
func (*Monitor) GetCluster ¶
func (*Monitor) GetCounter ¶
func (m *Monitor) GetCounter(nameSpace, subSystem, name string, lvs ...string) monitoring.Counter
func (*Monitor) GetGauge ¶
func (m *Monitor) GetGauge(nameSpace, subSystem, name string, lvs ...string) monitoring.Gauge
func (*Monitor) GetInstance ¶
func (*Monitor) GetPushGatewayUrl ¶
func (*Monitor) RegisterCounter ¶
register must call before Start()
func (*Monitor) RegisterGauge ¶
Click to show internal directories.
Click to hide internal directories.