Documentation
¶
Overview ¶
Package converter exposes utilities to convert config files from other programs to Grafana Agent Flow configurations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(in []byte, kind Input) ([]byte, diag.Diagnostics)
Convert generates a Grafana Agent Flow config given an input configuration file.
Conversions are made as literally as possible, so the resulting config files may be unoptimized (i.e., lacking component reuse). A converted config file should just be the starting point rather than the final destination.
Note that not all functionality defined in the input configuration may have an equivalent in Grafana Agent Flow. If the conversion could not complete because of mismatched functionality, an error is returned with no resulting config. If the conversion completed successfully but generated warnings, an error is returned alongside the resulting config.
Types ¶
Directories
¶
Path | Synopsis |
---|---|
Package diag exposes error types used throughout converter and a method to pretty-print them to the screen.
|
Package diag exposes error types used throughout converter and a method to pretty-print them to the screen. |
internal
|
|