Commit Graph

152 Commits

Author SHA1 Message Date
Dane Strandboge 19737fcb52
chore(linters): Fix remaining errcheck warnings (#15518)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2024-07-10 12:51:25 +02:00
Sven Rebhan 48963846f2
feat(parsers.openmetrics): Add parser for OpenMetrics format (#15298) 2024-05-16 15:28:08 -05:00
Pascal Zimmermann b4cafb4a91
docs(inputs.prometheus): Remove invalid deprecation statement (#15229) 2024-04-25 22:15:55 +02: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
Sven Rebhan 4664b6d017
fix(inputs.prometheus): List namespaces only when filtering by namespace (#14871) 2024-03-07 13:23:26 -06:00
Sven Rebhan 2cd12adcd7
chore(inputs.prometheus): Fix linter warnings (#14777) 2024-02-12 17:55:34 -07: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
Andreas Deininger 5f5a56ed01
docs: Fix typos (#14376) 2024-01-05 22:34:02 +01:00
Sven Rebhan 9e88381085
chore(parsers.prometheus): Migrate tests to test-cases (#14527) 2024-01-05 09:23:38 -07:00
Sven Rebhan d7a5bf6d70
chore(inputs.prometheus): Consolidate parsers for metric v1 and v2 (#14524) 2024-01-04 12:30:04 -07:00
Andreas Deininger 6814d7af8a
docs: Fix typos (#14359)
Co-authored-by: Josh Powers <powersj@fastmail.com>
2023-11-29 14:47:39 +01:00
Paweł Żak 8fbea28ab3
chore(linters): Fix findings found by testifylint: expected-actual (#14229) 2023-11-01 14:09:55 -06:00
Paweł Żak 34ae468a8c
chore(linters): Fix findings found by testifylint: len (#14203) 2023-10-31 10:29:53 +01:00
Ganga Mahesh Siddem 920a49c846
fix(input.prometheus): Read bearer token from file every time (#14191) 2023-10-30 09:12:12 +01:00
Paweł Żak fe87db594c
chore(linters): Fix findings found by testifylint: error-nil (#14198) 2023-10-27 07:42:25 -06:00
Paweł Żak 97f47c11dd
chore(linters): Fix findings found by testifylint: empty (#14179) 2023-10-25 15:09:13 -06:00
Paweł Żak 7c5b3ea068
chore(linters): Fix findings found by testifylint: compares (#14177) 2023-10-24 15:02:26 -06:00
Paweł Żak 990ffc7222
chore(linters): Fix findings found by testifylint: bool-compare (#14163) 2023-10-24 10:45:17 -06:00
Paweł Żak 5661341813
chore: Enable filepathJoin checker for gocritic (#13758)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-08-14 23:18:20 +02: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 9d894e7dee
fix(inputs.prometheus): Don't collect metrics from finished pods (#13629) 2023-07-21 11:09:44 +02:00
Maxim Ivanov cb966ebf6b
fix(inputs.prometheus): Fix missing metrics when multiple plugin instances specified (#13627) 2023-07-21 11:06:51 +02:00
Maxim Ivanov 42c7a2027f
feat(inputs.prometheus): Always apply kubernetes label and field selectors (#13624) 2023-07-21 11:00:54 +02:00
Sven Rebhan 6d1da80ebb
docs(inputs.prometheus): Add example for prometheus timestamps (#13362) 2023-06-06 07:28:45 -06:00
Maxim Ivanov 5cb928cc5d
fix(inputs.prometheus): Avoid race when creating informer factory (#13231) 2023-05-08 16:25:32 +02:00
Luke Winikates e9f55a848f
chore(deps): Bump prometheus from v1.8.2 to v2.42.0 (#13225)
Dependency version 0.42.0 corresponds to release version 2.42.0 see [prometheus versioning description](https://github.com/prometheus/prometheus#prometheus-code-base) for details.
2023-05-03 09:47:00 +02:00
Ivaylo Ivanov 14c84a00ee
fix(inputs.prometheus): Add namespace option in k8s informer factory (#13063)
Co-authored-by: ivayloi2 <ivayloi2@vmware.com>
2023-04-12 17:00:57 +02:00
r3inbowari 19c4316694
chore: Update README.md (#12989) 2023-04-04 13:43:49 +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
Joshua Powers 5cc55fa900
chore: run make docs (#12802) 2023-03-06 07:29:29 -07:00
Jovan Kostovski 332997089b
docs: Add optional tls parameters to the documentation (#12788) 2023-03-06 12:25:04 +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
Eng Zer Jun 4d0f05980e
test: Use `t.Setenv` to set env vars (#12621) 2023-02-10 11:46:14 +01:00
Pascal Zimmermann aa0b9d7dcf
fix: Rename the Prometheus Input Plugin Timeout variable (#12626) 2023-02-10 11:44:42 +01:00
Francois Steyn 7345b400ff
docs(inputs.prometheus): fix incorrect headers option (#12625) 2023-02-06 09:52:51 -07: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
Thomas Casteleyn 61523bd4b9
feat(tools/readme_linter): Check for global configuration section (#12426) 2023-01-12 16:55:21 +01:00
Maxim Ivanov 9d5c879cac
fix(inputs.prometheus): correctly default to 9102 port (#12282) 2022-11-28 08:19:44 -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