Skip to content

Commit 933bc8c

Browse files
authored
Drop Flume backend (#184)
1 parent 6c67b71 commit 933bc8c

File tree

11 files changed

+5
-301
lines changed

11 files changed

+5
-301
lines changed

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ set(INCLUDE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/include")
8686
# Backends
8787
message(STATUS "Backends")
8888
message(STATUS " Compiling StdCout backend")
89-
message(STATUS " Compiling Flume UDP/JSON backend")
9089
message(STATUS " Compiling InfluxDB backend with Unix socket and UDP transport")
9190

9291
# Create library
@@ -95,7 +94,6 @@ add_library(Monitoring SHARED
9594
src/Metric.cxx
9695
src/ComplexMetric.cxx
9796
src/Backends/InfluxDB.cxx
98-
src/Backends/Flume.cxx
9997
src/Backends/StdOut.cxx
10098
src/DerivedMetrics.cxx
10199
src/ProcessMonitor.cxx
@@ -202,7 +200,6 @@ set(TEST_SRCS
202200
test/testMonitoring.cxx
203201
test/testMonitoringFactory.cxx
204202
test/testDerived.cxx
205-
test/testFlume.cxx
206203
test/testMetric.cxx
207204
test/testProcessDetails.cxx
208205
test/testProcessMonitor.cxx

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ See the table below to find `URI`s for supported backends:
4848
| InfluxDB | Unix socket | `influxdb-unix` | - | `info` |
4949
| ApMon | UDP | `apmon` | - | `info` |
5050
| StdOut | - | `stdout`, `infologger` | [Prefix] | `debug` |
51-
| Flume | UDP | `flume` | - | `info` |
5251
| Kafka | TCP | `kafka` | - | `info` |
5352
5453
##### StdCout output format
@@ -104,7 +103,7 @@ In order to send more than one metric in a packet group them into vector:
104103
monitoring->send(std::vector<Metric>&& metrics);
105104
```
106105

107-
It's also possible to send multiple, grouped values (only `Flume` and `InfluxDB` backends are supported); For example `cpu` metric can be composed of `cpuUser`, `cpuSystem` values.
106+
It's also possible to send multiple, grouped values (`InfluxDB` backends are supported); For example `cpu` metric can be composed of `cpuUser`, `cpuSystem` values.
108107
```cpp
109108
void sendGroupped(std::string name, std::vector<Metric>&& metrics)
110109
```

examples/7-InternalBenchamrk.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ int main()
3030
{
3131
static constexpr std::array<std::string_view, 4> backends = {
3232
"no-op://",
33-
"flume://localhost:1234",
3433
"influxdb-udp://localhost:1234",
3534
"stdout://"};
3635
std::cout << "| " << std::setw(30) << "Backend"

src/Backends/Flume.cxx

Lines changed: 0 additions & 135 deletions
This file was deleted.

src/Backends/Flume.h

Lines changed: 0 additions & 96 deletions
This file was deleted.

src/MonitoringFactory.cxx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "UriParser/UriParser.h"
2222

2323
#include "Backends/StdOut.h"
24-
#include "Backends/Flume.h"
2524
#include "Backends/Noop.h"
2625

2726
#include "Backends/InfluxDB.h"
@@ -108,11 +107,6 @@ std::unique_ptr<Backend> getNoop(http::url /*uri*/)
108107
return std::make_unique<backends::Noop>();
109108
}
110109

111-
std::unique_ptr<Backend> getFlume(http::url uri)
112-
{
113-
return std::make_unique<backends::Flume>(uri.host, uri.port);
114-
}
115-
116110
void MonitoringFactory::SetVerbosity(std::string selected, std::unique_ptr<Backend>& backend)
117111
{
118112
auto found = verbosities.find(selected);
@@ -133,7 +127,6 @@ std::unique_ptr<Backend> MonitoringFactory::GetBackend(std::string& url)
133127
{"influxdb-udp", getInfluxDb},
134128
{"influxdb-unix", getInfluxDb},
135129
{"apmon", getApMon},
136-
{"flume", getFlume},
137130
{"no-op", getNoop},
138131
{"kafka", getKafka}};
139132

test/testApMon.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include "../src/UriParser/UriParser.h"
1212

13-
#define BOOST_TEST_MODULE Test Monitoring Flume
13+
#define BOOST_TEST_MODULE Test Monitoring ApMon
1414
#define BOOST_TEST_DYN_LINK
1515
#include <boost/test/unit_test.hpp>
1616
#include <boost/filesystem/path.hpp>

test/testFlume.cxx

Lines changed: 0 additions & 53 deletions
This file was deleted.

test/testInfluxDb.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include "../src/UriParser/UriParser.h"
1212

13-
#define BOOST_TEST_MODULE Test Monitoring Flume
13+
#define BOOST_TEST_MODULE Test Monitoring InfluxDB
1414
#define BOOST_TEST_DYN_LINK
1515
#include <boost/test/unit_test.hpp>
1616
#include "../src/Backends/InfluxDB.h"

test/testMonitoring.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ BOOST_AUTO_TEST_CASE(createMonitoring)
4545

4646
BOOST_AUTO_TEST_CASE(buffering)
4747
{
48-
auto monitoring = Monitoring::Get("stdout://,flume://localhost:1234");
48+
auto monitoring = Monitoring::Get("stdout://,influxdb-udp://localhost:1234");
4949
monitoring->enableBuffering(10);
5050
for (int i = 0; i < 25; i++) {
5151
monitoring->send({10, "myMetricInt"});

0 commit comments

Comments
 (0)