Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/IAOTW/aliyun-exporter
/ functions
Functions
38 in github.com/IAOTW/aliyun-exporter
⨍
Functions
38
◇
Types & classes
10
↓ 5 callers
Method
Get
Get return value for measure
pkg/client/metric.go:67
↓ 2 callers
Function
NewMetricClient
NewMetricClient create metric Client
pkg/client/metric.go:104
↓ 2 callers
Method
SetDefaults
()
pkg/config/config.go:23
↓ 2 callers
Method
String
String name of metric
pkg/config/metric.go:46
↓ 2 callers
Function
allNamesOfNamespaces
allNamesOfNamespaces return all avaliable namespaces
pkg/client/metric.go:55
↓ 1 callers
Method
AddFlags
(cmd *cobra.Command)
cmd/options.go:23
↓ 1 callers
Function
AllNamespaces
AllNamespaces return allNamespaces
pkg/client/metric.go:50
↓ 1 callers
Method
Complete
Complete do some initialization
cmd/options.go:34
↓ 1 callers
Method
Desc
Desc to prometheus desc
pkg/config/metric.go:57
↓ 1 callers
Method
Labels
Labels return labels that not in ignores
pkg/client/metric.go:76
↓ 1 callers
Function
New
New ..
pkg/ratelimit/transport.go:30
↓ 1 callers
Function
New
New create http handler
pkg/handler/handler.go:24
↓ 1 callers
Function
NewCloudMonitorCollector
NewCloudMonitorCollector create a new collector for cloud monitor
pkg/collector/collector.go:25
↓ 1 callers
Function
NewCloudMonitorCollectorFromURL
NewCloudMonitorCollectorFromURL create a new collector from HTTP Request URL for cloud monitor
pkg/collector/collector.go:47
↓ 1 callers
Function
NewRootCommand
NewRootCommand create root command
cmd/cmd.go:18
↓ 1 callers
Function
NewWithLimiter
NewWithLimiter returns a RoundTripper capable of rate limiting http requests.
pkg/ratelimit/transport.go:25
↓ 1 callers
Function
Parse
Parse parse config from file
pkg/config/config.go:39
↓ 1 callers
Method
Run
Run start server
pkg/handler/handler.go:151
↓ 1 callers
Method
SetTransport
(rate int)
pkg/client/metric.go:116
↓ 1 callers
Method
Values
Values return values for lables
pkg/client/metric.go:88
↓ 1 callers
Function
Version
Version return version info
version/version.go:16
↓ 1 callers
Function
filterNamespaces
(namespaces ...string)
pkg/client/metric.go:184
↓ 1 callers
Function
formatUnit
(s string)
pkg/config/metric.go:79
↓ 1 callers
Function
handlerMetrics
(w http.ResponseWriter, r *http.Request, c map[string]prometheus.Collector)
pkg/handler/handler.go:86
↓ 1 callers
Function
handlerMonitors
(w http.ResponseWriter, r *http.Request, logger log.Logger, rate int, cfg *config.Config)
pkg/handler/handler.go:95
↓ 1 callers
Function
newListMetricNamespacesCommand
()
cmd/cmd.go:71
↓ 1 callers
Function
newServeMetricsCommand
()
cmd/cmd.go:31
↓ 1 callers
Function
newVersionCommand
()
cmd/cmd.go:61
↓ 1 callers
Method
retrive
retrive get datapoints for metric
pkg/client/metric.go:122
↓ 1 callers
Method
setDefaults
setdefault options
pkg/config/metric.go:24
Method
AddFlags
(cmd *cobra.Command)
cmd/options.go:83
Method
Collect
Collect do collect metrics into channel
pkg/client/metric.go:144
Method
Collect
(ch chan<- prometheus.Metric)
pkg/collector/collector.go:65
Method
Complete
()
cmd/options.go:88
Method
Describe
(ch chan<- *prometheus.Desc)
pkg/collector/collector.go:62
Method
DescribeMetricMetaList
DescribeMetricMetaList return metrics meta list
pkg/client/metric.go:167
Method
RoundTrip
RoundTrip ensures requests are performed within the rate limiting constraints.
pkg/ratelimit/transport.go:16
Function
main
()
main.go:10