telegraf/plugins/parsers/prometheus
Sven Rebhan 48963846f2
feat(parsers.openmetrics): Add parser for OpenMetrics format (#15298)
2024-05-16 15:28:08 -05: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(parsers.prometheus): Consolidation v1 and v2 parsers (#14580) 2024-01-16 13:13:56 -07: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 feat(parsers.openmetrics): Add parser for OpenMetrics format (#15298) 2024-05-16 15:28:08 -05:00
parser_test.go chore(parsers.prometheus): Migrate tests to test-cases (#14527) 2024-01-05 09:23:38 -07: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"