telegraf/plugins/parsers/prometheus
Paulo Dias cb71790cf7
chore(linters): Enforce import grouping with gci linter (#16526)
Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@me.com>
2025-02-24 19:37:12 -06:00
..
testcases chore(parsers.prometheus): Migrate tests to test-cases (#14527) 2024-01-05 09:23:38 -07:00
README.md chore: Fix readme linter errors for processor, aggregator, and parser plugins (#10960) 2022-06-06 17:04:28 -06:00
common.go chore(linters): Enforce import grouping with gci linter (#16526) 2025-02-24 19:37:12 -06:00
metric_v1.go chore(parsers.prometheus): Consolidation v1 and v2 parsers (#14580) 2024-01-16 13:13:56 -07:00
metric_v2.go chore(parsers.prometheus): Consolidation v1 and v2 parsers (#14580) 2024-01-16 13:13:56 -07:00
parser.go chore(parsers.prometheus): Do not warn about unknown format without headers (#16166) 2024-11-12 11:05:11 -06:00
parser_test.go chore(linters): Fix non-input/output plugin errcheck warnings (#15472) 2024-06-12 07:52:42 -06:00

README.md

Prometheus Text-Based Format Parser Plugin

There are no additional configuration options for Prometheus Text-Based Format. The metrics are parsed directly into Telegraf metrics. It is used internally in prometheus input or can be used in http_listener_v2 to simulate Pushgateway.

Configuration

[[inputs.file]]
  files = ["example"]

  ## Data format to consume.
  ## Each data format has its own unique set of configuration options, read
  ## more about them here:
  ##   https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  data_format = "prometheus"