Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos
Commits
c3244027
Commit
c3244027
authored
Sep 04, 2024
by
Paul Graydon
Browse files
Options
Browse Files
Download
Plain Diff
software/ors-amarisoft: Improve eNB xlog forwarding
See merge request
nexedi/slapos!1632
parents
86d54d98
18057126
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
7 deletions
+33
-7
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+1
-1
software/ors-amarisoft/instance-enb-input-schema.json
software/ors-amarisoft/instance-enb-input-schema.json
+6
-6
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+26
-0
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
c3244027
...
...
@@ -88,7 +88,7 @@ md5sum = 52da9fe3a569199e35ad89ae1a44c30e
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum =
8b9301f26fc4ffbc7eda9c1ac8da1a46
md5sum =
140cce72eb04768abbe87ea4982f36bd
[template-ors-enb]
_update_hash_filename_ = instance-ors-enb.jinja2.cfg
...
...
software/ors-amarisoft/instance-enb-input-schema.json
View file @
c3244027
...
...
@@ -198,18 +198,18 @@
"default"
:
0
},
"xlog_fluentbit_forward_host"
:
{
"title"
:
"
Address to Forward Xlog by Fluenbit
"
,
"description"
:
"Address of
Remote Fluentd or Fluentbit Server to Forward Xlog
"
,
"title"
:
"
Fluentbit Xlog forwarding address
"
,
"description"
:
"Address of
remote Fluentd or Fluentbit server to which Fluentbit should forward Xlog data
"
,
"type"
:
"string"
},
"xlog_fluentbit_forward_port"
:
{
"title"
:
"
Port to Forward Xlog by Fluentbi
t"
,
"description"
:
"
Optional Port of Remote Fluentd or Fluentbit Server to Forward Xlog
"
,
"title"
:
"
Fluentbit Xlog forwarding por
t"
,
"description"
:
"
(Optional) Port of remote Fluentd or Fluentbit server to which Fluentbit should forward Xlog data
"
,
"type"
:
"string"
},
"xlog_fluentbit_forward_shared_key"
:
{
"title"
:
"
Shared Key to Forward Xlog by Fluentbit
"
,
"description"
:
"Secret Key
Shared with Remote Fluentd or Fluentbit Server for Authentication when Forwarding Xlog
"
,
"title"
:
"
Fluentbit Xlog forwarding shared key
"
,
"description"
:
"Secret Key
shared with remote Fluentd or Fluentbit server for authentication when forwarding Xlog data
"
,
"type"
:
"string"
}
}
...
...
software/ors-amarisoft/instance-enb.jinja2.cfg
View file @
c3244027
...
...
@@ -80,6 +80,7 @@ script = ${:etc}/run
service = ${:etc}/service
promise = ${:etc}/promise
log = ${:var}/log
xlog-fluentbit = ${:var}/xlog-fluentbit
{% if slapparameter_dict.get("enb_config_link", None) %}
[enb-config-dl]
...
...
@@ -149,6 +150,26 @@ command-line = ${xamari-xlog-script:output}
hash-files = ${:command-line}
{% if slapparameter_dict.get('xlog_fluentbit_forward_host') %}
[xlog-fluentbit-tag]
recipe = slapos.recipe.build
computer = ${slap-connection:computer-id}
enb-id = {{ slapparameter_dict.get("enb_id", "") }}
gnb-id = {{ slapparameter_dict.get("gnb_id", "") }}
init =
import socket
options['hostname'] = socket.gethostname()
radio_id = ''
if options['enb-id']:
radio_id = 'e%s' % options['enb-id']
elif options['gnb-id']:
radio_id = 'g%s' % options['gnb-id']
options['radio-id'] = radio_id
xlog_fluentbit_tag = '_'.join(options[x] for x in ('hostname', 'computer', 'radio-id') if options[x])
options['xlog-fluentbit-tag'] = xlog_fluentbit_tag
[xlog-fluentbit-config]
recipe = slapos.recipe.template
output = ${directory:etc}/${:_buildout_section_name_}.cfg
...
...
@@ -163,7 +184,9 @@ inline =
[INPUT]
name tail
path ${:logfile}
tag ${xlog-fluentbit-tag:xlog-fluentbit-tag}
Read_from_Head True
db ${directory:xlog-fluentbit}/tail-state
[OUTPUT]
name forward
match *
...
...
@@ -240,6 +263,9 @@ ru-list = {{ dumps(rulib.iru_dict.keys() | sort) }}
cell-list = {{ dumps(rulib.icell_dict.keys() | sort) }}
peer-list = {{ dumps(ipeer_dict.keys() | sort) }}
peer-cell-list = {{ dumps(ipeercell_dict.keys() | sort) }}
{%- if slapparameter_dict.get('xlog_fluentbit_forward_host') %}
fluentbit-tag = ${xlog-fluentbit-tag:xlog-fluentbit-tag}
{%- endif %}
[monitor-instance-parameter]
...
...
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