Skip to content

Commit d1c5b21

Browse files
authored
Merge pull request #2 from fluent/master
Fluent-bit from base as of Oct 13, 2020
2 parents 3849ae8 + 9643eeb commit d1c5b21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1856
-341
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project(fluent-bit)
33

44
# Fluent Bit Version
55
set(FLB_VERSION_MAJOR 1)
6-
set(FLB_VERSION_MINOR 6)
6+
set(FLB_VERSION_MINOR 7)
77
set(FLB_VERSION_PATCH 0)
88
set(FLB_VERSION_STR "${FLB_VERSION_MAJOR}.${FLB_VERSION_MINOR}.${FLB_VERSION_PATCH}")
99

@@ -191,6 +191,7 @@ option(FLB_FILTER_THROTTLE_SIZE "Enable throttle size filter" No)
191191
option(FLB_FILTER_NEST "Enable nest filter" Yes)
192192
option(FLB_FILTER_LUA "Enable Lua scripting filter" Yes)
193193
option(FLB_FILTER_RECORD_MODIFIER "Enable record_modifier filter" Yes)
194+
option(FLB_FILTER_TENSORFLOW "Enable tensorflow filter" No)
194195

195196
# Debug callbacks
196197
option(FLB_HTTP_CLIENT_DEBUG "Enable HTTP Client debug callbacks" No)

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ FROM debian:buster as builder
22

33
# Fluent Bit version
44
ENV FLB_MAJOR 1
5-
ENV FLB_MINOR 6
5+
ENV FLB_MINOR 7
66
ENV FLB_PATCH 0
7-
ENV FLB_VERSION 1.6.0
7+
ENV FLB_VERSION 1.7.0
88

99
ENV DEBIAN_FRONTEND noninteractive
1010

conf/fluent-bit.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# storage metrics
4949
# ---------------
5050
# publish storage pipeline metrics in '/api/v1/storage'. The metrics are
51-
# exported only if the 'http_server' optoin is enabled.
51+
# exported only if the 'http_server' option is enabled.
5252
#
5353
storage.metrics on
5454

documentation/fluentbit_users.png

-6.27 KB
Loading

fluent-bit_1.6.0.bb renamed to fluent-bit_1.7.0.bb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
1616
SECTION = "net"
1717

1818
PR = "r0"
19-
PV = "1.6.0"
19+
PV = "1.7.0"
2020

2121
SRCREV = "v${PV}"
2222
SRC_URI = "git://github.com/fluent/fluent-bit.git;nobranch=1"

include/fluent-bit/flb_aws_util.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ struct flb_aws_client_generator *flb_aws_client_generator();
130130
*/
131131
char *flb_aws_endpoint(char* service, char* region);
132132

133-
char *flb_s3_endpoint(char* bucket, char* region);
134-
135133
/* Parses AWS XML API Error responses and returns the value of the <code> tag */
136134
flb_sds_t flb_aws_xml_error(char *response, size_t response_len);
137135

include/fluent-bit/flb_fstore.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
#define FLB_FSTORE_LOCK 222
2929
#define FLB_FSTORE_UNLOCK 333
3030

31+
#define FLB_FSTORE_MEM CIO_STORE_MEM
32+
#define FLB_FSTORE_FS CIO_STORE_FS
33+
3134
struct flb_fstore_file {
3235
flb_sds_t name; /* file name */
3336

@@ -40,25 +43,27 @@ struct flb_fstore_file {
4043
};
4144

4245
struct flb_fstore_stream {
43-
struct cio_stream *stream; /* Chunk I/O stream context */
46+
char *name; /* reference to stream->name */
4447
flb_sds_t path; /* stream filesystem path */
48+
struct cio_stream *stream; /* Chunk I/O stream context */
4549
struct mk_list files;
4650
struct mk_list _head;
4751
};
4852

4953
struct flb_fstore {
54+
int store_type;
5055
char *root_path;
5156
struct cio_ctx *cio; /* Chunk I/O context */
5257
struct mk_list streams;
5358
};
5459

55-
struct flb_fstore *flb_fstore_create(char *path);
60+
struct flb_fstore *flb_fstore_create(char *path, int store_type);
5661

5762
int flb_fstore_destroy(struct flb_fstore *fs);
5863

5964
struct flb_fstore_stream *flb_fstore_stream_create(struct flb_fstore *fs,
6065
char *stream_name);
61-
void flb_fstore_stream_destroy(struct flb_fstore_stream *stream);
66+
void flb_fstore_stream_destroy(struct flb_fstore_stream *stream, int delete);
6267

6368
int flb_fstore_file_meta_set(struct flb_fstore *fs,
6469
struct flb_fstore_file *fsf,
@@ -80,5 +85,6 @@ int flb_fstore_file_inactive(struct flb_fstore *fs,
8085
struct flb_fstore_file *fsf);
8186
int flb_fstore_file_delete(struct flb_fstore *fs,
8287
struct flb_fstore_file *fsf);
88+
void flb_fstore_dump(struct flb_fstore *fs);
8389

8490
#endif
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2+
3+
/* Fluent Bit
4+
* ==========
5+
* Copyright (C) 2020 The Fluent Bit Authors
6+
*
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
*/
19+
20+
/* Fluent Bit intermediate metric representation */
21+
22+
#ifndef FLB_INTERMEDIATE_METRIC_H
23+
#define FLB_INTERMEDIATE_METRIC_H
24+
25+
#include <fluent-bit/flb_time.h>
26+
#include <monkey/mk_core.h>
27+
#include <msgpack.h>
28+
29+
/* Metric Type- Gague or Counter */
30+
#define GAUGE 1
31+
#define COUNTER 2
32+
33+
/* Metric Unit */
34+
#define PERCENT "Percent"
35+
#define BYTES "Bytes"
36+
37+
struct flb_intermediate_metric
38+
{
39+
msgpack_object key;
40+
msgpack_object value;
41+
int metric_type;
42+
const char *metric_unit;
43+
struct flb_time timestamp;
44+
45+
struct mk_list _head;
46+
};
47+
48+
#endif

lib/chunkio/include/chunkio/cio_stream.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ struct cio_stream {
3232

3333
struct cio_stream *cio_stream_create(struct cio_ctx *ctx, const char *name,
3434
int type);
35+
int cio_stream_delete(struct cio_stream *st);
3536
void cio_stream_destroy(struct cio_stream *st);
3637
void cio_stream_destroy_all(struct cio_ctx *ctx);
3738

lib/chunkio/src/cio_file_compat.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ int cio_file_read_prepare(struct cio_ctx *ctx, struct cio_chunk *ch)
9595
return -1;
9696
}
9797

98+
int cio_file_content_copy(struct cio_chunk *ch,
99+
void **out_buf, size_t *out_size)
100+
{
101+
return -1;
102+
}
103+
98104
int cio_file_is_up(struct cio_chunk *ch, struct cio_file *cf)
99105
{
100106
return CIO_FALSE;

0 commit comments

Comments
 (0)