Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0e12aee
proc_metrics: add new proc metrics plugin for getting metrics on a si…
pwhelan Aug 23, 2021
1a71ae2
Merge branch 'master' into in_proc_metrics
pwhelan Sep 10, 2021
9da5b07
in_proc_metrics: search for process by name.
pwhelan Sep 10, 2021
5f77605
in_proc_metrics: use a list to track process metrics for each process.
pwhelan Sep 11, 2021
1c226b2
in_proc_metrics: rename ctx to proc in create_pid_cmt to reduce confu…
pwhelan Sep 11, 2021
b0c76e0
in_proc_metrics: simplify code that selects pid to collect.
pwhelan Sep 11, 2021
184c78e
in_proc_metrics: work on lists of processes, WIP.
pwhelan Sep 13, 2021
e08adca
in_proc_metrics: label metrics with the process cmdline.
pwhelan Sep 20, 2021
65ddac8
in_proc_metrics: free process metrics on shutdown, cmt when process d…
pwhelan Sep 20, 2021
2471ccd
in_proc_metrics: find all processes when using process name.
pwhelan Sep 20, 2021
a18803d
in_proc_metrics: refactor code to use a single cmetrics context.
pwhelan Sep 20, 2021
1b1bc2c
in_proc_metrics: free gauges in process metrics initialization.
pwhelan Sep 20, 2021
3c4232c
in_proc_metrics: fix bug where duplicate process entries are added.
pwhelan Sep 20, 2021
d1eea55
in_proc_metrics: just use the metrics pid without pid==0 magic.
pwhelan Sep 20, 2021
92980ed
in_proc_metrics: only register on linux.
pwhelan Sep 20, 2021
9727c34
in_proc_metrics: change submit log message to debug priority.
pwhelan Sep 20, 2021
29866a8
in_proc_metrics: fix use-after-free when triggering ENOPERM on /proc/…
pwhelan Sep 21, 2021
e78af94
in_proc_metrics: indentation and alignment for multiple line statements.
pwhelan Sep 21, 2021
03e799d
in_proc_metrics: use process setting 'all' or '*' to track all proces…
pwhelan Sep 21, 2021
d027150
in_proc_metrics: add support for cpu metrics.
pwhelan Sep 22, 2021
177f4db
Merge branch 'master' into in_proc_metrics_cpu_list
pwhelan Oct 15, 2021
881b336
in_proc_metrics: clean out cpu stats when processes finish.
pwhelan Oct 15, 2021
c50a06a
Merge branch 'master' into in_proc_metrics
pwhelan Nov 23, 2021
0b37618
Merge branch 'master' into in_proc_metrics
pwhelan Mar 11, 2022
3f055e7
in_proc: fix possible free before allocation.
pwhelan Mar 11, 2022
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: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ option(FLB_IN_STATSD "Enable StatsD input plugin" Yes)
option(FLB_IN_STORAGE_BACKLOG "Enable storage backlog input plugin" Yes)
option(FLB_IN_EMITTER "Enable emitter input plugin" Yes)
option(FLB_IN_NODE_EXPORTER_METRICS "Enable node exporter metrics input plugin" Yes)
option(FLB_IN_PROC_METRICS "Enable process metrics input plugin" Yes)
option(FLB_IN_WINDOWS_EXPORTER_METRICS "Enable windows exporter metrics input plugin" Yes)
option(FLB_OUT_AZURE "Enable Azure output plugin" Yes)
option(FLB_OUT_AZURE_BLOB "Enable Azure output plugin" Yes)
Expand Down Expand Up @@ -249,6 +250,7 @@ if(FLB_ALL)
set(FLB_IN_NETIF 1)
set(FLB_IN_NGINX_STATUS 1)
set(FLB_IN_EXEC 1)
set(FLB_IN_PROC_METRICS 1)

# Output plugins
set(FLB_OUT_ES 1)
Expand Down
1 change: 1 addition & 0 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
REGISTER_IN_PLUGIN("in_docker")
REGISTER_IN_PLUGIN("in_docker_events")
REGISTER_IN_PLUGIN("in_node_exporter_metrics")
REGISTER_IN_PLUGIN("in_proc_metrics")
endif()

REGISTER_IN_PLUGIN("in_kafka")
Expand Down
1 change: 0 additions & 1 deletion plugins/in_proc/in_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ static int in_proc_exit(void *data, struct flb_config *config)
}

/* Destroy context */
flb_free(ctx->proc_name);
flb_free(ctx);

return 0;
Expand Down
4 changes: 4 additions & 0 deletions plugins/in_proc_metrics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set(src
proc_metrics.c)

FLB_PLUGIN(in_proc_metrics "${src}" "")
Loading