Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter runs an unknown service discovery implementation and converts its target groups to JSON and writes to a file for file_sd.
func NewAdapter ¶
func NewAdapter(ctx context.Context, file, name string, d discovery.Discoverer, logger *slog.Logger, sdMetrics map[string]discovery.DiscovererMetrics, registerer prometheus.Registerer) *Adapter
NewAdapter creates a new instance of Adapter.
Click to show internal directories.
Click to hide internal directories.