httpprovider

package module
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 20

README

What is this new component httpprovider?

  • An implementation of confmap.Provider for HTTP (httpprovider) allows OTEL Collector the ability to load configuration for itself by fetching and reading config files stored in HTTP servers.

How this new component httpprovider works?

  • It will be called by confmap.Resolver to load configurations for OTEL Collector.
  • By giving a config URI starting with prefix 'http://', this httpprovider will be used to download config files from given HTTP URIs, and then used the downloaded config files to deploy the OTEL Collector.
  • In our code, we check the validity scheme and string pattern of HTTP URIs. And also check if there are any problems on config downloading and config deserialization.

Expected URI format:

Prerequisites:

  • Need to setup a HTTP server ahead, which returns with a config files according to the given URI

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory added in v0.99.0

func NewFactory() confmap.ProviderFactory

NewFactory returns a factory for a confmap.Provider that reads the configuration from a http server.

This Provider supports "http" scheme.

One example for HTTP URI is: http://localhost:3333/getConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL