forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
list.go
33 lines (26 loc) · 1.02 KB
/
list.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
This file is included in the main file to load all metricsets.
In case only a subset of metricsets should be included, they can be specified manually in the main.go file.
*/
package include
// Make sure all active plugins are loaded
// TODO: create a script to automatically generate this list
import (
"github.com/elastic/beats/libbeat/logp"
"github.com/elastic/beats/metricbeat/helper"
// List of all metrics to make sure they are registered
// Every new metric must be added here
_ "github.com/elastic/beats/metricbeat/module/apache/status"
_ "github.com/elastic/beats/metricbeat/module/mysql/status"
// Redis module and metrics
_ "github.com/elastic/beats/metricbeat/module/redis"
_ "github.com/elastic/beats/metricbeat/module/redis/info"
)
func ListAll() {
logp.Debug("beat", "Registered Modules and Metrics")
for module := range helper.Registry.Modulers {
for metricset := range helper.Registry.MetricSeters[module] {
logp.Debug("metricbeat", "Registred: Module: %v, MetricSet: %v", module, metricset)
}
}
}