Daniel Jaglowski 40b485f08a Update core for v0.90.0 release (#29539) před 1 rokem
..
internal a414171301 [receiver/file] Fix the stated supported telemetry types (#27684) před 1 rokem
testdata 2fe5b00267 [receiver/file] add capability to replay metrics in time (#19754) před 1 rokem
Makefile e2dfaa5f3c [receiver/file] add file receiver skeleton 1/3 (#16827) před 1 rokem
README.md a414171301 [receiver/file] Fix the stated supported telemetry types (#27684) před 1 rokem
config.go 5133f4ccd6 [chore] use license shortform (#22052) před 1 rokem
config_test.go 5133f4ccd6 [chore] use license shortform (#22052) před 1 rokem
doc.go 5133f4ccd6 [chore] use license shortform (#22052) před 1 rokem
factory.go 5133f4ccd6 [chore] use license shortform (#22052) před 1 rokem
factory_test.go 5133f4ccd6 [chore] use license shortform (#22052) před 1 rokem
file_reader.go c070fd9277 [chore] [receiver/file] enable exhaustive lint (#25180) před 1 rokem
file_reader_test.go c9d03e92d0 [chore] add error check to test (#22947) před 1 rokem
go.mod 40b485f08a Update core for v0.90.0 release (#29539) před 1 rokem
go.sum 40b485f08a Update core for v0.90.0 release (#29539) před 1 rokem
metadata.yaml a414171301 [receiver/file] Fix the stated supported telemetry types (#27684) před 1 rokem
receiver.go 44c8882012 [chore] update linter version (#22983) před 1 rokem
receiver_test.go 5133f4ccd6 [chore] use license shortform (#22052) před 1 rokem
replay_timer.go 5133f4ccd6 [chore] use license shortform (#22052) před 1 rokem
replay_timer_test.go 5133f4ccd6 [chore] use license shortform (#22052) před 1 rokem

README.md

File Receiver

Status
Stability development: metrics
Distributions contrib
Issues Open issues Closed issues
Code Owners @pmcollins, @djaglowski

The File Receiver reads the output of a File Exporter, converting that output to metrics, and sending the metrics down the pipeline.

Currently, the only file format supported is the File Exporter's JSON format. Reading compressed output, rotated files, or telemetry other than metrics are not supported at this time.

Getting Started

The following setting is required:

  • path [no default]: the file in the same format as written by a File Exporter.

The following setting is optional:

  • throttle [default: 1]: a determines how fast telemetry is replayed. A value of 0 means that it will be replayed as fast as the system will allow. A value of 1 means that it will be replayed at the same rate as the data came in, as indicated by the timestamps on the input file's telemetry data. Higher values mean that the replay speed will be slower by a multiple of the throttle value. Values can be decimals, e.g. 0.5 means that telemetry will be replayed at 2x the rate indicated by the telemetry's timestamps.

Example

receivers:
  file:
    path: my-telemetry-file
    throttle: 0.5