Skip to content

New prometheus remote write parser#8967

Merged
helenosheaa merged 16 commits intomasterfrom
prometheus-remote-write-parser
Mar 18, 2021
Merged

New prometheus remote write parser#8967
helenosheaa merged 16 commits intomasterfrom
prometheus-remote-write-parser

Conversation

@helenosheaa
Copy link
Copy Markdown
Member

Closes #8682

Extension from PR #8702

Basic implementation of Prometheus Remote Write Protocol. Includes:

  • Prometheus Remote Write parser, tests and readme

  • Updated list of data input formats

  • Must be used with http_listener_v2

Separate pr for snappy support within http_listener_v2 #8966

@telegraf-tiger telegraf-tiger bot added new plugin plugin/parser 1. Request for new parser plugins 2. Issues/PRs that are related to parser plugins labels Mar 10, 2021
Copy link
Copy Markdown
Contributor

@telegraf-tiger telegraf-tiger bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤝 ✅ CLA has been signed. Thank you!

} else {
t = now
}
metric, err := metric.New("prometheusremotewrite", tags, fields, t)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should "prometheusremotewrite" be the metricName from above?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the metric name from above is being used as the fieldname, it's a similar thing to whats in our prometheus parser so the telegraf metric name is hardcoded and the metric name from prometheus is used within an fieldname. Otherwise the output would become:

scrape_samples_scraped,instance=localhost:9090,job=prometheus scrape_samples_scraped=390 1615920053859000000

do you think I should change it to make it clearer that it's not becoming the telegraf metric name? Could add a comment in the code or similar.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like that should maybe be a configuration option. I know it's possible to do it with the rename plugin, but this seems relevant. a name prefix might also be helpful.

@helenosheaa helenosheaa merged commit 67f588c into master Mar 18, 2021
@helenosheaa helenosheaa deleted the prometheus-remote-write-parser branch March 18, 2021 15:34
jblesener pushed a commit to jblesener/telegraf that referenced this pull request Apr 18, 2021
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new plugin plugin/parser 1. Request for new parser plugins 2. Issues/PRs that are related to parser plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Prometheus Remote Write Parser

2 participants