# Functions
Fetch is a helper function that fetches data from Couchbase API.
FlattenStruct flattens structure into a Go map.
GetMetricsFromFile checks if metric file exist and convert it to Metrics structure.
InitExporters instantiates the Exporters.
MultiFetch is like Fetch but makes multiple requests concurrently.
NewBucketExporter creates the BucketExporter and fill it with metrics metadata from the metrics file.
NewBucketStatsExporter creates the BucketStatsExporter and fill it with metrics metadata from the metrics file.
NewClusterExporter creates the ClusterExporter and fill it with metrics metadata from the metrics file.
NewNodeExporter creates the NodeExporter and fill it with metrics metadata from the metrics file.
NewXDCRExporter creates the XDCRExporter and fill it with metrics metadata from the metrics file.
# Structs
BucketData (/pools/default/buckets).
BucketExporter encapsulates bucket metrics and context.
BucketStatsData (/pools/default/buckets/<bucket_name>/stats).
BucketStatsExporter encapsulates bucket stats and context.
ClusterData (/pools/default).
ClusterExporter encapsulates cluster metrics and context.
Context is a custom url wrapper with credentials and booleans about which metrics types should be scraped.
Exporters structure contains all exporters.
Metrics is a structure that describes the metrics files that hold all metrics informations used for scraping.
NodeData (/nodes/self).
NodeExporter encapsulates node metrics and context.
XDCRExporter encapsulates XDCR metrics and context.