Commit Graph

37 Commits

Author SHA1 Message Date
ionutboangiu
bca760021c Revise kafka exporter implementation
- added extra error return parameter to constructor
- failing to parse PEM certificates returns an error (previously nil
return)
- moved Connect logic inside the constructor*
- removed unnecessary fields from poster structure. Use the
configuration fields directly instead.
- removed mutex from poster structure (kafka writer is thread-safe)
- removed nil writer check. Message is exported directly.
- shortened receiver name
(https://google.github.io/styleguide/go/decisions#receiver-names)

*The Kafka Transport is not a connection but a configuration for the
connection created during the first export. The connection and its
related goroutines stay running until manually closed.
2024-10-23 21:11:25 +02:00
ionutboangiu
d27e7aae20 Improve nats integration test
- made use of the test setup helpers.
- used t.Cleanup instead of defer.
- instead of waiting 50ms for the nats-server to start, used a helper
hook to attempt connections in fibonacci intervals. On success it
keeps a reference to the connection for later usage.
- handle error for stream delete function executed during cleanup.
- shorten time.Sleep durations when waiting for exports to finish.
- extract the cache itemID checking logic into a separate func
- retry failed requests in fibonacci intervals for up to 500ms
2024-09-23 20:28:26 +02:00
ionutboangiu
113e2a2bdf Replace interface{} with any 2023-05-31 10:22:28 +02:00
adi
f562de49df ExtraData for exporters interface 2022-06-29 12:00:42 +02:00
andronache98
ecdf5e54ea Changed headers 2022-03-09 14:14:30 +01:00
andronache98
9ec56f5155 Changed headers 2022-03-09 14:14:30 +01:00
andronache98
2e4b77e4df Commented CGRID where it is not needed 2022-02-06 09:52:26 +01:00
porosnicuadrian
2e6e553f3f Added new api for exporter -ArchiveEventsAsReply + test 2021-11-28 10:28:30 +01:00
porosnicuadrian
82c8809d02 Added connMngr in ees *rpc exporter 2021-11-08 14:32:43 +02:00
andronache
7ab4167613 Corrected header in multiple files 2021-11-01 13:50:00 +02:00
porosnicuadrian
8bac24c964 Modified PrepareMap method signature for ExportEvent 2021-11-01 13:48:21 +02:00
porosnicuadrian
13d6195f8e New rpc exporter 2021-10-19 09:05:16 +03:00
Trial97
a3ebbe38ec Added EeSV1 APIs back 2021-09-07 07:44:10 +02:00
Trial97
f147617401 Added *log exporter 2021-09-07 07:44:10 +02:00
Trial97
9aa153c0b0 Finished implementing all the exporters 2021-08-18 16:34:44 +02:00
Trial97
d2915a5737 Updated the EEs with the new interface 2021-08-18 16:34:44 +02:00
Trial97
02973a711d Started changing the EEs 2021-08-18 16:34:44 +02:00
Trial97
00727fb06e Added concurent requests for ees 2021-07-23 10:58:30 +02:00
Trial97
7609c6a925 Updated ees metrics 2021-07-23 10:58:30 +02:00
Trial97
81f2d722f6 Added nats ees 2021-06-25 18:15:12 +02:00
TeoV
ae146640f4 Start merging CGREventWithOpts with CGREvent 2021-01-14 10:30:35 +01:00
TeoV
07159d8d6a Add SQL Exporter 2020-12-18 18:30:22 +01:00
Trial97
54b4b0e003 Added support for HTTP Headers in *http exporters. Fixes #1874 2020-11-09 09:47:24 +01:00
Trial97
61d2b4e922 Added *eventType to opts for process threhold 2020-10-09 14:27:48 +02:00
TeoV
ff9d658e6b Add skel for ElasticsearchExporter 2020-09-30 12:26:21 +02:00
TeoV
7fbab0c3a2 Consider timezone and tenant from exporter first 2020-09-04 13:12:24 +02:00
Trial97
8f638b5b85 Added Opts to EEs 2020-09-04 12:32:09 +02:00
TeoV
6fd8357d67 Add GetMetrics method to EEs interface 2020-09-03 17:02:47 +02:00
TeoV
7a2817929f Add support for *virt export type in EEs 2020-06-26 17:48:44 +03:00
TeoV
1302ffb8fe Add Post support for HTTP and other types (amqp;sqs;etc...) 2020-06-04 16:59:22 +02:00
TeoV
31387e2fe2 Finish implementation for ees *file_csv format 2020-06-01 17:00:58 +02:00
TeoV
04e50b7efe Add skel for file fwv and add test for combimedCdrFieldVal 2020-05-19 18:47:28 +02:00
TeoV
1b060548cf Start updating csv exporter 2020-05-14 17:07:04 +02:00
DanB
36431268c5 EEs with filterS and asynchronous exporters 2020-05-06 19:51:37 +02:00
DanB
9a0f3ebf80 Skel of FileCSVee 2020-05-05 20:24:07 +02:00
DanB
3092380899 EEs configuration and initial ProcessEvent 2020-05-03 20:48:37 +02:00
DanB
58a2dccfdf EventExporterService skel 2020-05-01 20:03:22 +02:00