This information is for Chronosphere Telemetry Pipeline, which is a standalone product separate from Chronosphere Observability Platform.
datagen, alias: apache_common) generates simulated log data through
Gofakeit. You can use this simulated
data to test your pipeline configurations.
Although this is a self-contained plugin that doesn’t communicate with external
sources, it’s still classified as a pull-based
source plugin.
This plugin doesn’t support the use of a
descriptive metadata name in the
Pipeline Builder interface.
This plugin doesn’t support duplicates of itself within the same pipeline.
Supported telemetry types
The for Chronosphere Telemetry Pipeline supports these telemetry types:Configuration parameters
Use the parameters in this section to configure the . The Telemetry Pipeline web interface uses the items in the Name column to describe these parameters. Pipeline configuration files use the items in the Key column as YAML keys.General
Advanced
Templates
Templates define the structure and content of your simulated log data. When you configure the Datagen source plugin in a pipeline’s YAML configuration file, use thetemplate key to create a JSON object. For example:
Functions
The Datagen plugin uses functions to generate randomized values that follow a consistent pattern. For example,{{ HTTPMethod }} can output a string like
GET, POST, or PUT, but not a string like GREEN or SUNDAY.
To invoke a function in a template, surround the name of that
function with double curly braces.
Suggested functions
You can use any of the available Gofakeit functions in a template. The following functions are best suited for generating realistic log data:{{ HTTPMethod }}: Returns an HTTP method, likeGET.{{ HTTPStatusCode }}: Returns an HTTP status code, like403.{{ HTTPVersion }}: Returns an HTTP protocol version, likeHTTP/1.1.{{ IPv4Address }}: Returns a random IPv4 address.{{ IPv6Address }}: Returns a random IPv6 address.{{ Username }}: Returns a random username, likeBailey1270.{{ UUID }}: Returns a string of numbers in UUID format.{{ Date }}: Returns a random time in UTC format.{{ LogLevel syslog }}: Returns a log type, likealert.{{ Number 0 30_000 }}: Returns a number between 0 and 30,000.{{ URLPath }}: Returns a string that resembles a URL path, like/foo/bar. This function is unique to Datagen and isn’t included in Gofakeit.{{ URLScheme }}: Returns eitherhttporhttps. This function is unique to Datagen and isn’t included in Gofakeit.

