mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Loki: Add multitenancy support for the HTTP client * Loki: Support to push with multitenancy mode * Apply feedback suggestions
24 lines
412 B
Go
24 lines
412 B
Go
package lokihttp
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/grafana/dskit/backoff"
|
|
"github.com/grafana/dskit/flagext"
|
|
"github.com/prometheus/common/config"
|
|
)
|
|
|
|
// Config describes configuration for a HTTP pusher client.
|
|
type Config struct {
|
|
URL flagext.URLValue
|
|
BatchWait time.Duration
|
|
BatchSize int
|
|
|
|
Client config.HTTPClientConfig
|
|
|
|
BackoffConfig backoff.Config
|
|
Timeout time.Duration
|
|
|
|
TenantID string
|
|
}
|