package
0.0.0-20171025115302-c1fcc63521a7
Repository: https://github.com/random-liu/k8s-stackdriver.git
Documentation: pkg.go.dev

# Functions

GetPrometheusMetrics scrapes metrics from the given host and port using /metrics handler.
MetricFamilyToMetricDescriptor converts MetricFamily object to the MetricDescriptor.
NewMetricDescriptorCache creates empty metric descriptor cache for the given component.
OmitComponentName removes from the metric names prefix that is equal to component name.
SendToStackdriver sends http request to Stackdriver to create the given timeserieses.
TranslatePrometheusToStackdriver translates metrics in Prometheus format to Stackdriver format.

# Structs

MetricDescriptorCache is responsible for fetching, creating and updating metric descriptors from the stackdriver.