Documentation
¶
Index ¶
- func GraphInterceptor(p *Profiler) flow.Interceptor
- func Graphviz(topology *types.Topology) (string, error)
- func ParseStatsMessage() func(string) (*StatsMessage, error)
- type History
- type Metric
- type Profiler
- func (p *Profiler) AddGraph(id string, topology *types.Topology, metricsPrefix []string) error
- func (p *Profiler) AddMetric(id string, isRate bool) Metric
- func (p *Profiler) DeleteMetrics(metricsPrefix []string)
- func (p *Profiler) RemoveGraph(id string, err error)
- func (p *Profiler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (p *Profiler) Stop()
- type ProfilerOptions
- type StatsMessage
- type StatsTagMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GraphInterceptor ¶
func GraphInterceptor(p *Profiler) flow.Interceptor
func ParseStatsMessage ¶
func ParseStatsMessage() func(string) (*StatsMessage, error)
Types ¶
type Profiler ¶
type Profiler struct {
// contains filtered or unexported fields
}
func NewProfiler ¶
func NewProfiler(opt *ProfilerOptions) *Profiler
func (*Profiler) DeleteMetrics ¶
func (*Profiler) RemoveGraph ¶
type ProfilerOptions ¶
type StatsMessage ¶
type StatsMessage struct {
GraphId string
StatId string
TagMsgs []StatsTagMessage
}
func RegexStatsMessage ¶
func RegexStatsMessage(str string) (*StatsMessage, error)
func (*StatsMessage) ToString ¶
func (msg *StatsMessage) ToString() string
id.stat;[tag=value|metric@ratio;].
Source Files
¶
Click to show internal directories.
Click to hide internal directories.