Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add packaging documentation about Ubuntu 24.04 #8889

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e1278ca
filter: aws use '== FLB_TRUE' for if bool conditions
mwarzynski Mar 26, 2024
b9869a7
workflows: bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#8811)
dependabot[bot] May 10, 2024
33cd3a8
config: fix error message grammar (#8818)
braydonk May 14, 2024
6f3ba28
out_kafka: increase max kafka dynamic topic length to 249 characters
mickymiek May 3, 2024
50ec012
processor_labels: Remove a needless existence check for insert operation
cosmo0920 May 14, 2024
bf955cf
kernel: fix incorrect assignment of kernel version between major and …
thenamehasbeentake May 15, 2024
aa995a1
out_splunk: record accessor key for hec_token (#8793)
mannbiher May 15, 2024
a17b953
out_datadog: Update the descriptions of special field options #8751
jszwedko May 15, 2024
16fc700
Merge pull request from GHSA-5rjf-prwh-pp7q
pwhelan May 15, 2024
65fc34d
in_premetheus_remote_write: Implement handler of payloads of promethe…
cosmo0920 May 16, 2024
2bae6dc
release: update to 3.0.5 (#8839)
github-actions[bot] May 21, 2024
89d92ba
workflows: ensure only master releases are marked latest (#8856)
patrick-stephens May 22, 2024
eae6dfc
engine: free after log worker thread has been stopped
hiroyha1 Feb 15, 2024
be88d25
out_splunk: reduce noise and fix hec_token handling (fix #8859)
edsiper May 23, 2024
e3fed00
in_winevtlog: change total_size_threshold to size_t (#8853)
braydonk May 23, 2024
4c45c01
output: Fix handling of metrics in output processor
tchrono May 21, 2024
222bc1d
tests: runtime: processor_metrics_selector: check if works as an outp…
tchrono May 22, 2024
daf912c
release: update to 3.0.6 (#8865)
github-actions[bot] May 24, 2024
ba5c28c
build: add build support for ubuntu 24.04 noble numbat (#8796)
markuman May 24, 2024
2f9aa33
stackdriver: Support writing to textPayload field of Cloud Logging Lo…
shuaich May 24, 2024
ffcdd21
out_splunk: fix metadata hec_token bug that overrides default splunk_…
edsiper May 26, 2024
58a70e2
core: fix crash when running dry test mode (#8872)
zecke May 26, 2024
dc18ba0
release: update to 3.0.7
edsiper May 27, 2024
9049fc6
docs: Add Ubuntu 24.04 Noble Numbat
markuman May 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cron-scorecards-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534
with:
results_file: scorecard-results.sarif
results_format: sarif
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/staging-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ jobs:
name: "Fluent Bit ${{ inputs.version }}"
tag_name: v${{ inputs.version }}
target_commitish: '2.0'
make_latest: false

- name: Release 2.1 - not latest
uses: softprops/action-gh-release@v2
Expand All @@ -804,6 +805,7 @@ jobs:
name: "Fluent Bit ${{ inputs.version }}"
tag_name: v${{ inputs.version }}
target_commitish: '2.1'
make_latest: false

- name: Release 2.2 - not latest
uses: softprops/action-gh-release@v2
Expand All @@ -815,6 +817,7 @@ jobs:
name: "Fluent Bit ${{ inputs.version }}"
tag_name: v${{ inputs.version }}
target_commitish: '2.2'
make_latest: false

- name: Release 3.0 and latest
uses: softprops/action-gh-release@v2
Expand All @@ -825,6 +828,7 @@ jobs:
generate_release_notes: true
name: "Fluent Bit ${{ inputs.version }}"
tag_name: v${{ inputs.version }}
make_latest: true

staging-release-windows-checksums:
name: Get Windows checksums for new release
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
# Fluent Bit Version
set(FLB_VERSION_MAJOR 3)
set(FLB_VERSION_MINOR 0)
set(FLB_VERSION_PATCH 4)
set(FLB_VERSION_PATCH 7)
set(FLB_VERSION_STR "${FLB_VERSION_MAJOR}.${FLB_VERSION_MINOR}.${FLB_VERSION_PATCH}")

set(CMAKE_POSITION_INDEPENDENT_CODE ON)
Expand Down Expand Up @@ -209,6 +209,7 @@ option(FLB_IN_ELASTICSEARCH "Enable Elasticsearch (Bulk API) input pl
option(FLB_IN_CALYPTIA_FLEET "Enable Calyptia Fleet input plugin" Yes)
option(FLB_IN_SPLUNK "Enable Splunk HTTP HEC input plugin" Yes)
option(FLB_IN_PROCESS_EXPORTER_METRICS "Enable process exporter metrics input plugin" Yes)
option(FLB_IN_PROMETHEUS_REMOTE_WRITE "Enable prometheus remote write input plugin" Yes)
option(FLB_OUT_AZURE "Enable Azure output plugin" Yes)
option(FLB_OUT_AZURE_BLOB "Enable Azure output plugin" Yes)
option(FLB_OUT_AZURE_LOGS_INGESTION "Enable Azure Logs Ingestion output plugin" Yes)
Expand Down
1 change: 1 addition & 0 deletions cmake/windows-setup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ if(FLB_WINDOWS_DEFAULTS)
set(FLB_IN_PODMAN_METRICS No)
set(FLB_IN_ELASTICSEARCH Yes)
set(FLB_IN_SPLUNK Yes)
set(FLB_IN_PROMETHEUS_REMOTE_WRITE Yes)

# OUTPUT plugins
# ==============
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# docker buildx build --platform "linux/amd64,linux/arm64,linux/arm/v7,linux/s390x" -f ./dockerfiles/Dockerfile.multiarch --build-arg FLB_TARBALL=https://github.com/fluent/fluent-bit/archive/v1.8.11.tar.gz ./dockerfiles/

# Set this to the current release version: it gets done so as part of the release.
ARG RELEASE_VERSION=3.0.4
ARG RELEASE_VERSION=3.0.7

# For multi-arch builds - assumption is running on an AMD64 host
FROM multiarch/qemu-user-static:x86_64-arm as qemu-arm32
Expand Down
2 changes: 1 addition & 1 deletion fluent-bit-3.0.4.bb → fluent-bit-3.0.7.bb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
SECTION = "net"

PR = "r0"
PV = "3.0.4"
PV = "3.0.7"

SRCREV = "v${PV}"
SRC_URI = "git://github.com/fluent/fluent-bit.git;nobranch=1"
Expand Down
21 changes: 17 additions & 4 deletions include/fluent-bit/flb_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ struct flb_output_flush *flb_output_flush_create(struct flb_task *task,
struct cmt *metrics_context;
struct ctrace *trace_context;
size_t chunk_offset;
struct cmt *cmt_out_context = NULL;

/* Custom output coroutine info */
out_flush = (struct flb_output_flush *) flb_calloc(1, sizeof(struct flb_output_flush));
Expand Down Expand Up @@ -715,13 +716,25 @@ struct flb_output_flush *flb_output_flush_create(struct flb_task *task,
flb_sds_len(evc->tag),
(char *) metrics_context,
0,
NULL,
(void **)&cmt_out_context,
NULL);

if (ret == 0) {
ret = cmt_encode_msgpack_create(metrics_context,
&serialized_context_buffer,
&serialized_context_size);
if (cmt_out_context != NULL) {
ret = cmt_encode_msgpack_create(cmt_out_context,
&serialized_context_buffer,
&serialized_context_size);

if (cmt_out_context != metrics_context) {
cmt_destroy(cmt_out_context);
}

}
else {
ret = cmt_encode_msgpack_create(metrics_context,
&serialized_context_buffer,
&serialized_context_size);
}

cmt_destroy(metrics_context);

Expand Down
2 changes: 2 additions & 0 deletions packaging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ The [`distros`](./distros/) directory contains OCI container definitions used to
| Debian | 11 | arm64v8 | debian/bullseye.arm64v8 |
| Debian | 10 | x86_64 | debian/buster |
| Debian | 10 | arm64v8 | debian/buster.arm64v8 |
| Ubuntu | 24.04 / Noble Numbat | x86_64 | ubuntu/24.04 |
| Ubuntu | 24.04 / Noble Numbat | arm64v8 | ubuntu/24.04.arm64v8 |
| Ubuntu | 22.04 / Jammy Jellyfish | x86_64 | ubuntu/22.04 |
| Ubuntu | 22.04 / Jammy Jellyfish | arm64v8 | ubuntu/22.04.arm64v8 |
| Ubuntu | 20.04 / Focal Fossa | x86_64 | ubuntu/20.04 |
Expand Down
8 changes: 8 additions & 0 deletions packaging/build-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@
"target": "ubuntu/22.04.arm64v8",
"type": "deb"
},
{
"target": "ubuntu/24.04",
"type": "deb"
},
{
"target": "ubuntu/24.04.arm64v8",
"type": "deb"
},
{
"target": "raspbian/buster",
"type": "deb"
Expand Down
26 changes: 26 additions & 0 deletions packaging/distros/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,32 @@ ENV DEBIAN_FRONTEND noninteractive

COPY --from=multiarch-aarch64 /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64-static

# hadolint ignore=DL3008,DL3015
RUN apt-get update && \
apt-get install -y curl ca-certificates build-essential libsystemd-dev \
cmake make bash wget unzip nano vim valgrind dh-make flex bison \
libpq-dev postgresql-server-dev-all libpq5 \
libsasl2-2 libsasl2-dev openssl libssl-dev libssl3 libyaml-dev pkg-config zlib1g-dev && \
apt-get install -y --reinstall lsb-base lsb-release

# ubuntu/24.04 base image
FROM ubuntu:24.04 as ubuntu-24.04-base
ENV DEBIAN_FRONTEND noninteractive

# hadolint ignore=DL3008,DL3015
RUN apt-get update && \
apt-get install -y curl ca-certificates build-essential libsystemd-dev \
cmake make bash wget unzip nano vim valgrind dh-make flex bison \
libpq-dev postgresql-server-dev-all libpq5 \
libsasl2-2 libsasl2-dev openssl libssl-dev libssl3 libyaml-dev pkg-config zlib1g-dev && \
apt-get install -y --reinstall lsb-base lsb-release

# ubuntu/24.04.arm64v8 base image
FROM arm64v8/ubuntu:24.04 as ubuntu-24.04.arm64v8-base
ENV DEBIAN_FRONTEND noninteractive

COPY --from=multiarch-aarch64 /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64-static

# hadolint ignore=DL3008,DL3015
RUN apt-get update && \
apt-get install -y curl ca-certificates build-essential libsystemd-dev \
Expand Down
1 change: 1 addition & 0 deletions packaging/update-repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ DEB_REPO_PATHS=( "debian/bookworm"
"ubuntu/bionic"
"ubuntu/focal"
"ubuntu/jammy"
"ubuntu/noble"
"raspbian/buster"
"raspbian/bullseye" )

Expand Down
1 change: 1 addition & 0 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ REGISTER_IN_PLUGIN("in_opentelemetry")
REGISTER_IN_PLUGIN("in_elasticsearch")
REGISTER_IN_PLUGIN("in_calyptia_fleet")
REGISTER_IN_PLUGIN("in_splunk")
REGISTER_IN_PLUGIN("in_prometheus_remote_write")

# Test the event loop messaging when used in threaded mode
REGISTER_IN_PLUGIN("in_event_test")
Expand Down
2 changes: 1 addition & 1 deletion plugins/filter_aws/aws.c
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ static int get_ec2_metadata(struct flb_filter_aws *ctx)
metadata_fetched = FLB_FALSE;
}

if (metadata_fetched) {
if (metadata_fetched == FLB_TRUE) {
ctx->metadata_retrieved = FLB_TRUE;
}

Expand Down
12 changes: 12 additions & 0 deletions plugins/in_prometheus_remote_write/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
if(NOT FLB_METRICS)
message(FATAL_ERROR "Prometheus remote write input plugin requires FLB_HTTP_SERVER=On.")
endif()

set(src
prom_rw.c
prom_rw_prot.c
prom_rw_conn.c
prom_rw_config.c
)

FLB_PLUGIN(in_prometheus_remote_write "${src}" "monkey-core-static")
Loading
Loading