The Grafana Cloud Connector (grafanacloudconnector) is a connector component that can analyze telemetry in pipelines to generate usage metrics for the following Grafana Cloud products:
This connector will generate a host info metric based on the first "host_identifiers" resource attribute found on spans. The rest are skipped. Valid flush intervals are between 15s and 5m.
type Config struct {
// HostIdentifiers defines the list of resource attributes used to derive// a unique `grafana.host.id` value. In most cases, this should be [ "host.id" ] HostIdentifiers []string `mapstructure:"host_identifiers"`
MetricsFlushInterval time.Duration `mapstructure:"metrics_flush_interval"`
}
Config defines the configuration options for the Grafana Cloud connector.