-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[PARSER] | ||
Name telegraf | ||
Format json | ||
Read_from_Head True | ||
Time_Key timestamp | ||
Time_Keep On |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
[SERVICE] | ||
Parsers_File ${EP3_EXT_PATH}/cwl-metrics/conf/fluent-bit-parsers.conf | ||
|
||
[INPUT] | ||
Name tail | ||
Path ${MEDAL_TMPDIR}/metrics/container-metrics.json | ||
Parser telegraf | ||
|
||
[FILTER] | ||
Name lua | ||
Match * | ||
script time.lua | ||
call float_time | ||
|
||
[FILTER] | ||
Name parser | ||
Match * | ||
Key_Name log | ||
Parser telegraf | ||
|
||
[OUTPUT] | ||
Name es | ||
Match * | ||
Host ${ES_HOST} | ||
Port ${ES_PORT} | ||
Index metrics | ||
Time_Key timestamp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function float_time(tag, timestamp, record) | ||
return 1, record["Timestamp"], record | ||
end |