httpprovider

package
v0.61.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 23

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 New

func New() confmap.Provider

New returns a new confmap.Provider that reads the configuration from a file.

This Provider supports "http" scheme, and can be called with a "uri" that follows:

One example for http-uri be like: http://localhost:3333/getConfig

Examples: `http://localhost:3333/getConfig` - (unix, windows)

Types

This section is empty.

Jump to

Keyboard shortcuts

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