MCPcopy Index your code

hub / github.com/IAOTW/aliyun-exporter / functions

Functions38 in github.com/IAOTW/aliyun-exporter

↓ 5 callersMethodGet
Get return value for measure
pkg/client/metric.go:67
↓ 2 callersFunctionNewMetricClient
NewMetricClient create metric Client
pkg/client/metric.go:104
↓ 2 callersMethodSetDefaults
()
pkg/config/config.go:23
↓ 2 callersMethodString
String name of metric
pkg/config/metric.go:46
↓ 2 callersFunctionallNamesOfNamespaces
allNamesOfNamespaces return all avaliable namespaces
pkg/client/metric.go:55
↓ 1 callersMethodAddFlags
(cmd *cobra.Command)
cmd/options.go:23
↓ 1 callersFunctionAllNamespaces
AllNamespaces return allNamespaces
pkg/client/metric.go:50
↓ 1 callersMethodComplete
Complete do some initialization
cmd/options.go:34
↓ 1 callersMethodDesc
Desc to prometheus desc
pkg/config/metric.go:57
↓ 1 callersMethodLabels
Labels return labels that not in ignores
pkg/client/metric.go:76
↓ 1 callersFunctionNew
New ..
pkg/ratelimit/transport.go:30
↓ 1 callersFunctionNew
New create http handler
pkg/handler/handler.go:24
↓ 1 callersFunctionNewCloudMonitorCollector
NewCloudMonitorCollector create a new collector for cloud monitor
pkg/collector/collector.go:25
↓ 1 callersFunctionNewCloudMonitorCollectorFromURL
NewCloudMonitorCollectorFromURL create a new collector from HTTP Request URL for cloud monitor
pkg/collector/collector.go:47
↓ 1 callersFunctionNewRootCommand
NewRootCommand create root command
cmd/cmd.go:18
↓ 1 callersFunctionNewWithLimiter
NewWithLimiter returns a RoundTripper capable of rate limiting http requests.
pkg/ratelimit/transport.go:25
↓ 1 callersFunctionParse
Parse parse config from file
pkg/config/config.go:39
↓ 1 callersMethodRun
Run start server
pkg/handler/handler.go:151
↓ 1 callersMethodSetTransport
(rate int)
pkg/client/metric.go:116
↓ 1 callersMethodValues
Values return values for lables
pkg/client/metric.go:88
↓ 1 callersFunctionVersion
Version return version info
version/version.go:16
↓ 1 callersFunctionfilterNamespaces
(namespaces ...string)
pkg/client/metric.go:184
↓ 1 callersFunctionformatUnit
(s string)
pkg/config/metric.go:79
↓ 1 callersFunctionhandlerMetrics
(w http.ResponseWriter, r *http.Request, c map[string]prometheus.Collector)
pkg/handler/handler.go:86
↓ 1 callersFunctionhandlerMonitors
(w http.ResponseWriter, r *http.Request, logger log.Logger, rate int, cfg *config.Config)
pkg/handler/handler.go:95
↓ 1 callersFunctionnewListMetricNamespacesCommand
()
cmd/cmd.go:71
↓ 1 callersFunctionnewServeMetricsCommand
()
cmd/cmd.go:31
↓ 1 callersFunctionnewVersionCommand
()
cmd/cmd.go:61
↓ 1 callersMethodretrive
retrive get datapoints for metric
pkg/client/metric.go:122
↓ 1 callersMethodsetDefaults
setdefault options
pkg/config/metric.go:24
MethodAddFlags
(cmd *cobra.Command)
cmd/options.go:83
MethodCollect
Collect do collect metrics into channel
pkg/client/metric.go:144
MethodCollect
(ch chan<- prometheus.Metric)
pkg/collector/collector.go:65
MethodComplete
()
cmd/options.go:88
MethodDescribe
(ch chan<- *prometheus.Desc)
pkg/collector/collector.go:62
MethodDescribeMetricMetaList
DescribeMetricMetaList return metrics meta list
pkg/client/metric.go:167
MethodRoundTrip
RoundTrip ensures requests are performed within the rate limiting constraints.
pkg/ratelimit/transport.go:16
Functionmain
()
main.go:10