Commit Graph

88 Commits

Author SHA1 Message Date
Sven Rebhan 48963846f2
feat(parsers.openmetrics): Add parser for OpenMetrics format (#15298) 2024-05-16 15:28:08 -05:00
Nick Thomas 96d6da63f2
fix(http): Stop plugins from leaking file descriptors on telegraf reload (#15213) 2024-04-24 15:18:15 -05:00
Joshua Powers 6bb3d32da9
fix(inputs.prometheus): Correctly handle host header (#15195) 2024-04-19 15:10:32 -05:00
Joshua Powers 47e28d0f39
fix(inputs.prometheus): Remove duplicate response_timeout option (#15078) 2024-04-09 10:20:37 -05:00
Sven Rebhan fcb713a0a7
fix(inputs.prometheus): Initialize logger of parser (#15021) 2024-03-19 11:42:51 -05:00
Paweł Żak c4dbe65732
chore(linters): Bump golangci-lint to v1.56.1 (#14759) 2024-02-12 23:26:10 +01:00
tguenneguez de66a2f9aa
feat(inputs.prometheus): Add internal metrics (#14424) 2024-02-12 13:55:02 -07:00
Hiroshi Hayakawa 534289f3b4
feat(inputs.prometheus): Add option to limit body length (#14661)
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@me.com>
Co-authored-by: Josh Powers <powersj@fastmail.com>
2024-02-02 13:25:09 +01:00
Sven Rebhan d7a5bf6d70
chore(inputs.prometheus): Consolidate parsers for metric v1 and v2 (#14524) 2024-01-04 12:30:04 -07:00
Eng Zer Jun 7e6b98226e
chore(inputs): Remove unnecessary nil check (#13749)
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-08-14 10:39:56 +02:00
Maxim Ivanov 42c7a2027f
feat(inputs.prometheus): Always apply kubernetes label and field selectors (#13624) 2023-07-21 11:00:54 +02:00
Maxim Ivanov 5cb928cc5d
fix(inputs.prometheus): Avoid race when creating informer factory (#13231) 2023-05-08 16:25:32 +02:00
Maxim Ivanov 5fdeae1ab1
feat(inputs.prometheus): Control which pod metadata is added as tags (#12851) 2023-04-03 10:08:15 +02:00
Joshua Powers 77bebd8660
fix(inputs.prometheus): Use set over add for custom headers (#12907) 2023-03-21 16:39:34 +01:00
Joshua Powers bd065e3553
fix(inputs.prometheus): Correctly set timeout param (#12864) 2023-03-15 17:52:51 +01:00
Maxim Ivanov ee682539e7
feat(inputs.prometheus): Use namespace annotations to filter pods to be scraped (#12777) 2023-03-07 09:26:38 +01:00
Paweł Żak b2b58bab9e
chore: Fix linter findings for errorlint (part6) (#12733)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-03-01 22:19:38 +01:00
Thomas Casteleyn 6a2f6f301f
chore: eliminate unnecessary use of quoted strings in printf (#12722) 2023-02-23 06:49:36 -07:00
Pascal Zimmermann aa0b9d7dcf
fix: Rename the Prometheus Input Plugin Timeout variable (#12626) 2023-02-10 11:44:42 +01:00
Pascal Zimmermann dc9eb02301
fix(inputs.prometheus): Set the timeout for slow running API endpoints correctly (#12559) 2023-01-30 15:52:54 +01:00
Maxim Ivanov 51f23d244e
fix(inputs.prometheus): correctly track deleted pods (#12522) 2023-01-23 08:13:51 -07:00
Maxim Ivanov 55c8cfafb0
fix(inputs.promethes): respect selectors when scraping pods (#12278) 2022-11-28 08:05:31 -07:00
Maxim Ivanov c3562ae8b2
feat(inputs.prometheus): Allow explicit scrape configuration without annotations (#11962) 2022-11-22 18:04:52 +01:00
Charly Nanfack d4eda21742
feat(inputs.prometheus): Add support for custom header (#12050) 2022-11-21 21:55:21 +01:00
erwiese 215e8e030a
feat(inputs.prometheus): use system wide proxy settings (#11729) 2022-09-13 10:48:13 -07:00
Sebastian Spaink d67f75e557
docs: Remove warning not to remove go:embed (#11797)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2022-09-13 12:47:58 -05:00
Joshua Powers 8c49ddccc3
chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
Grace Wehner f4e76893d1
feat (inputs/prometheus): add setting to set custom namespace label name to avoid conflicts (#11538) 2022-08-05 08:27:20 -06:00
Joshua Powers 2fc19fa308
chore: correctly spell embed (#11200) 2022-05-27 07:13:47 -06:00
Sven Rebhan 56eb914998
chore: Embed sample configurations into README for inputs (#11136) 2022-05-24 08:49:47 -05:00
Joshua Powers 596b0e149b
fix: Remove any content type from prometheus accept header (#11082)
In #6745, the prometheus accept header was changed to accept any media
type. However, our prometheus plugin only accepts text. With the release
of newer versions of prometheus, the OpenMetrics type is now available
and could potentially be setup as the exclusive response type. As this
new content type is not supported, Telegraf should not accept it.

The original issue, #6523, was filed around getting a 406. The issue had
comments from the rabbit-mq maintainers who made changes to their code
to be less regid resolving the issue. The change to telegraf was made
afterwards anyway.

fixes: #10248
2022-05-24 15:11:17 +02:00
Sebastian Spaink b355be5ccb
feat: migrate input plugins to new sample config format (M-Z) (#10926) 2022-04-11 16:32:25 -05:00
Shubham Kumar Singh Rajput 777f8bf715
fix(inputs.prometheus): moved from watcher to informer (#10932) 2022-04-08 08:09:02 -06:00
Paweł Żak b9e4978b17
fix: Linter fixes for plugins/inputs/p* (#10066) 2021-11-15 09:14:09 -06:00
Yuji Kawamoto d2a25456d5
feat(prometheus): add ignore_timestamp option (#9740) 2021-10-05 15:11:46 -06:00
Eng Zer Jun 6a3b27126a
refactor: move from io/ioutil to io and os package (#9811) 2021-09-28 15:16:32 -06:00
Martin Molnar 1a42c7d289
For Prometheus Input add ability to query Consul Service catalog (#5464) 2021-07-27 17:23:01 -04:00
Russ Savage 467ab87912
chore: update prometheus input readme to match config options (#9270) 2021-05-25 15:11:14 -06:00
Russ Savage e8ae01921b
Set user agent when scraping prom metrics (#9271) 2021-05-20 08:36:36 -06:00
Helen Weller 66e12e062d
remove deprecation warning (#9125) 2021-04-13 16:13:06 -04:00
Sven Rebhan 9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} (#8969) 2021-04-09 13:15:04 -04:00
Paweł Żak 099ccda3f9
Linter fixes - gosimple (#9046) 2021-03-25 13:57:01 -04:00
Sebastian Spaink 29ac77906d
Change duplicate kubernetes import and update protobuf to v1.5.1 (#9039)
* Change import and update protobuf

* fix check-deps

* go mod tidy

* keep imports consistent
2021-03-24 10:59:05 -05:00
Paweł Żak 74a1acd814
Linter fixes - revive:unused-parameter, unparam, varcheck and unused (#8984)
* Linter fixes - revive:unused-parameter and unparam

* Linter fixes - revive:unused-parameter and unparam

* Linter fixes - revive:unused-parameter and unparam

* "nolint"'s removed

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-22 12:21:36 -05:00
Paweł Żak 38c61c07ef
Revive fixes - part 4: (#8981)
empty-lines

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-12 14:21:51 -06:00
Grace Wehner d7df2c546b
Prometheus [Input] plugin - Optimizing for bigger kubernetes clusters (500+ pods) when scraping thru 'monitor_kubernetes_pods' (#8762) 2021-03-08 11:00:56 -05:00
Aladex 4b7d11385c
Using mime-type in prometheus parser to handle protocol-buffer responses (#8545) 2021-01-07 11:21:09 -05:00
Dmitry Senin 0ccb134ae4
Add a parser plugin for prometheus (#7778) 2020-12-02 12:48:44 -07:00
Paweł Żak c8e69aca3c
Fixed almost all bugs found by LGTM analysis platform (#8240) 2020-10-08 11:20:35 -04:00
Daniel Nelson c73ed8ca6c
Export internal/tls package for use in execd plugins (#7697) 2020-06-25 11:44:22 -07:00