grafana/pkg/services/ngalert/state/historian
Alexander Weaver bf54f2672e
Alerting: Switch to snappy-compressed-protobuf for outgoing push requests to Loki (#65077)
* Encode with snappy, always

* JSON encoder type

* Headers

* Copy labels formatter from promtail

* Implement snappy-proto encoding

* Create encoder interface, test both encoders, choose snappy-proto by default

* Make encoder configurable at the LokiCfg level

* Export both encoders

* Touch up comment and tests

* Drop unnecessary conversions after move to plain strings to appease linter
2023-03-21 13:38:42 -05:00
..
model Chore: Fix goimports grouping in alerting (#62424) 2023-01-30 09:55:35 +01:00
annotation_test.go Alerting: Create new state history "fanout" backend that dispatches to multiple other backends at once (#64774) 2023-03-17 12:41:18 -05:00
annotation.go Alerting: Elide requests to Loki if nothing should be recorded (#65011) 2023-03-21 09:30:56 -05:00
backend.go Alerting: Create new state history "fanout" backend that dispatches to multiple other backends at once (#64774) 2023-03-17 12:41:18 -05:00
core_test.go Chore: Fix goimports grouping in alerting (#62424) 2023-01-30 09:55:35 +01:00
core.go Alerting: Usability adjustments to Loki representation of state history values (#62643) 2023-02-02 10:54:10 -06:00
dashboard_test.go Chore: Fix goimports grouping in alerting (#62424) 2023-01-30 09:55:35 +01:00
dashboard.go Chore: Fix goimports grouping in alerting (#62424) 2023-01-30 09:55:35 +01:00
encode.go Alerting: Switch to snappy-compressed-protobuf for outgoing push requests to Loki (#65077) 2023-03-21 13:38:42 -05:00
loki_http_test.go Alerting: Switch to snappy-compressed-protobuf for outgoing push requests to Loki (#65077) 2023-03-21 13:38:42 -05:00
loki_http.go Alerting: Switch to snappy-compressed-protobuf for outgoing push requests to Loki (#65077) 2023-03-21 13:38:42 -05:00
loki_test.go Alerting: Switch to snappy-compressed-protobuf for outgoing push requests to Loki (#65077) 2023-03-21 13:38:42 -05:00
loki.go Alerting: Fix ambiguous handling of equals in labels when bucketing Loki state history streams (#65013) 2023-03-21 12:33:27 -05:00
multiple_test.go Alerting: Create new state history "fanout" backend that dispatches to multiple other backends at once (#64774) 2023-03-17 12:41:18 -05:00
multiple.go Vendor errors.Join from Go standard library to avoid version incompatibilities (#64985) 2023-03-17 14:07:58 -05:00
noop.go Alerting: Create new state history "fanout" backend that dispatches to multiple other backends at once (#64774) 2023-03-17 12:41:18 -05:00
query.go Alerting: Create new state history "fanout" backend that dispatches to multiple other backends at once (#64774) 2023-03-17 12:41:18 -05:00
sql.go Alerting: Create new state history "fanout" backend that dispatches to multiple other backends at once (#64774) 2023-03-17 12:41:18 -05:00
testing.go Alerting: Expose Prometheus metrics for persisting state history (#63157) 2023-03-06 10:40:37 -06:00