Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
metadata-collect-agent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
metadata-collect-agent
Commits
1a951adb
Commit
1a951adb
authored
Jun 01, 2021
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to upload
parent
f4b69262
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
dracut.module/90metadata-collect/flb.conf
dracut.module/90metadata-collect/flb.conf
+2
-1
dracut.module/collect-sh-template.mk
dracut.module/collect-sh-template.mk
+15
-2
No files found.
dracut.module/90metadata-collect/flb.conf
View file @
1a951adb
...
...
@@ -2,7 +2,8 @@
flush
5
[
INPUT
]
name
cpu
name
tail
path
/
var
/
log
/
metadata_collect
.
log
[
output
]
name
wendelin_fluentbit
...
...
dracut.module/collect-sh-template.mk
View file @
1a951adb
...
...
@@ -12,8 +12,21 @@ ERP5_PASS="$(ERP5_PASS)"
REFERENCE
=
"COMP-MAC-
$$
(echo "
$$
DEFAULT_IF_MAC
" | sed s/:/-/g).Metadata.Snapshot"
/sbin/metadata-collect-agent
"$$NEWROOT"
"$$ERP5_USER"
"$$ERP5_PASS"
"$$REFERENCE"
"$$ERP5_BASE_URL"
/sbin/fluent-bit
-e
/etc/out_gstdout.so
-c
/etc/flb.conf
touch
/var/log/metadata_collect.log
/sbin/fluent-bit
-e
/etc/out_gstdout.so
-c
/etc/flb.conf
&
#/sbin/metadata-collect-agent "$$NEWROOT" "$$ERP5_USER" "$$ERP5_PASS" "$$REFERENCE" "$$ERP5_BASE_URL"
echo "[2020
:
2122222]" >> /var/log/metadata_collect.log
echo "[2020
:
1234232]" >> /var/log/metadata_collect.log
fluent_bit_is_running
=
"
$$
(ps -ef | grep "
fluent-bit
" | grep -v "
grep
")"
while
[
-z
"$${fluent_bit_is_running}"
];do
sleep(5)
done
endef
export
collect_sh
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment