httpprovider

package module
v0.99.0 Latest Latest
Warning

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

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

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:

Prerequistes:

  • 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

func NewWithSettings deprecated

func NewWithSettings(set confmap.ProviderSettings) confmap.Provider

NewWithSettings returns a new 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

Deprecated: [v0.99.0] Use NewFactory instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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