prometheus/documentation/examples
TJ Hoplock 6ebfbd2d54 chore!: adopt log/slog, remove go-kit/log
For: #14355

This commit updates Prometheus to adopt stdlib's log/slog package in
favor of go-kit/log. As part of converting to use slog, several other
related changes are required to get prometheus working, including:
- removed unused logging util func `RateLimit()`
- forward ported the util/logging/Deduper logging by implementing a small custom slog.Handler that does the deduping before chaining log calls to the underlying real slog.Logger
- move some of the json file logging functionality to use prom/common package functionality
- refactored some of the new json file logging for scraping
- changes to promql.QueryLogger interface to swap out logging methods for relevant slog sugar wrappers
- updated lots of tests that used/replicated custom logging functionality, attempting to keep the logical goal of the tests consistent after the transition
- added a healthy amount of `if logger == nil { $makeLogger }` type conditional checks amongst various functions where none were provided -- old code that used the go-kit/log.Logger interface had several places where there were nil references when trying to use functions like `With()` to add keyvals on the new *slog.Logger type

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
2024-10-07 15:58:50 -04:00
..
custom-sd chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
kubernetes-rabbitmq fixes yamllint errors 2021-06-12 12:47:47 +02:00
remote_storage chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
Makefile Check syntax of example configurations (#10753) 2022-05-26 18:17:21 +10:00
prometheus-agent.yml config: Make remote-write required for Agent mode (#9618) 2021-10-30 01:41:40 +02:00
prometheus-digitalocean.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
prometheus-docker.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
prometheus-dockerswarm.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
prometheus-eureka.yml Add Eureka Service Discovery (#3369) 2020-08-26 17:36:59 +02:00
prometheus-hetzner.yml Check syntax of example configurations (#10753) 2022-05-26 18:17:21 +10:00
prometheus-ionos.yml Add service discovery for IONOS Cloud (#10514) 2022-05-20 14:57:23 +02:00
prometheus-kubernetes.yml scraping: limit detail on dropped targets, to save memory (#12647) 2023-08-14 15:39:25 +01:00
prometheus-linode.yml Linode IPv6 Range support, Optional region filtering, Missing fields in Documentation fixed (#13774) 2024-04-05 09:31:59 +01:00
prometheus-marathon.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
prometheus-nomad.yml feat(nomad): add nomad service discovery 2022-06-30 14:17:08 +02:00
prometheus-ovhcloud.yml chore: Fix typos (#14868) 2024-09-10 22:32:03 +02:00
prometheus-puppetdb.yml docs: Improve PuppetDB example (#9547) 2021-10-20 21:03:17 +02:00
prometheus-scaleway.yml add support for scaleway service discovery (#8555) 2021-03-10 15:10:17 +01:00
prometheus-uyuni.yml Add Uyuni service discovery (#8190) 2021-10-19 01:00:44 +02:00
prometheus-vultr.yml Check syntax of example configurations (#10753) 2022-05-26 18:17:21 +10:00
prometheus.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
rbac-setup.yml update ServiceAccount for new kubernetes versions 2023-01-05 15:43:48 +00:00
web-config.yml Fix a broken link for the bcrypt ref. at the web-config.yml example 2021-04-20 22:43:37 +02:00