package
0.3.1
Repository: https://github.com/go-graphite/buckytools.git
Documentation: pkg.go.dev

# Functions

BackfillMetrics takes a list of Graphite servers to operate on and a map of old metric => new metric.
CleanMetric sanitizes the given metric key by removing adjacent "." characters and replacing any "/" characters with ".".
DeleteJSONMetrics deletes metrics listed in the JSON array read from the given io.Reader.
DeleteMetric sends a DELETE request for the given metric to the given server.
DeleteRegexMetrics deletes metrics matched by the given regular expression.
DeleteSliceMetrics deletes metrics listed in the given metrics key slice.
No description provided by the author
No description provided by the author
No description provided by the author
GetClusterConfig returns either the cached ClusterConfig object or builds it if needed.
GetHTTP returns a *http.Client that can be used to interact with remote buckyd daemons.
GetMetricData retrieves the binary Whisper data for a given metric name that lives on the given server.
GetSingleHashRing connects to the given server and returns a JSONRingType representing its hashring configuration.
HTTPFetch attempts to build and execute an *http.Request with a Fibonacci backoff for handling errors and 202 status codes (results not available).
No description provided by the author
JSONSliceMetrics returns the slice of metrics as a string containing a JSON array listing those metrics.
ListAllMetrics interates through the host:port strings given in servers contact those buckyd daemons, gets the list of all known metrics on that server, returns a map of server => list of metrics.
ListJSONMetrics queries buckyd daemons specified in servers for all metrics known to that buckyd daemon and that are present in the io.Reader interface which points to a data source containing a JSON array.
ListRegexMetrics queries buckyd daemons specified in servers for all metrics matching the given regex.
ListSliceMetrics queries buckyd daemons specified in servers for all metrics that are known by that buckyd daemon and listed in the slice metrics.
No description provided by the author
LocateSliceMetrics takes a slice of metric ken names and derives the location of each metric in the cluster by using the consistent hash algorithm.
MetricDecode accepts a MetricData struct and returns a slice of bytes that is the data from the MetricData struct decoded.
MetricEncode takes a completed MetricData struct and upgrades the encoding provided the initial encoding is the identity encoding.
NewCommand is called by the init() function in sub-command files to register themselves at startup.
No description provided by the author
PostMetric sends a POST request with new metric data to the given server.
RebalanceMetrics will relocate metrics on the wrong server or duplicate metrics and move them to the correct server, backfilling as needed.
No description provided by the author
SanitizeHostPort parses and sanitizes the host:port string.
SetupCommon sets up common flags for all modules.
SetupHostname sets up a generic find the host to connect to flag.
SetupJSON installs the -j and --json flags in the given Command.
SetupSingle sets up the -s|--single command flag.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Cluster is the working and cached cluster configuration.
HostPort is a convenience variable for sub-commands.
JSONOuput is a convenience variable for sub-commands.
NoEncoding is a flag to disable compression of transferred Whisper files.
SingleHost is a convenience variable for sub-commands.
Verbose is a flag to indicate verbose logging.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RetryReader is a buffer for HTTP request bodies that is replayable.

# Type aliases

No description provided by the author