Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set user agent when scraping prom metrics #9271

Merged
merged 3 commits into from
May 20, 2021
Merged

Conversation

russorat
Copy link
Contributor

Required for all PRs:

  • Updated associated README.md.
  • Wrote appropriate unit tests.

this change updates the user agent used when scraping a prometheus endpoint from the generic Go-Http-Client to Telegraf/1.18 used in other plugins (the influxdb_v2 output)

plugins/inputs/prometheus/prometheus.go Outdated Show resolved Hide resolved
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@super-visions.com>
plugins/inputs/prometheus/prometheus.go Outdated Show resolved Hide resolved
@reimda reimda merged commit e8ae019 into master May 20, 2021
@reimda reimda deleted the add-ua-to-prom branch May 20, 2021 14:36
reimda pushed a commit that referenced this pull request May 20, 2021
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants