/
monitoring-config.xml
34 lines (30 loc) · 1.6 KB
/
monitoring-config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="utf-8"?>
<config xmlns="http://www.atb-bremen.de"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.atb-bremen.de monitoring-config.xsd">
<indexes>
<index id="index-gitlab" location="/opt/smartclide/data/indexes/gitlab"/>
</indexes>
<datasources>
<!--Change the value of "token" in the "options" to a valid GitLab API access token-->
<datasource id="datasource-gitlab"
type="webservice"
monitor="org.eclipse.opensmartclide.context.monitoring.monitors.GitlabCommitMonitor"
uri="https://gitlab.com"
options="interval=60000&startDelay=5000&token=CHANGE_ME&server=rabbitmq&port=5672&username=guest&password=guest&outgoing-queue=code_repo_recommendation_queue&outgoing-durable=false"
class="org.eclipse.opensmartclide.context.monitoring.config.models.datasources.GitlabDataSource"/>
</datasources>
<interpreters>
<interpreter id="interpreter-gitlab">
<configuration type="*"
parser="org.eclipse.opensmartclide.context.monitoring.parser.GitlabCommitParser"
analyser="org.eclipse.opensmartclide.context.monitoring.analyser.GitlabCommitAnalyser"/>
</interpreter>
</interpreters>
<monitors>
<monitor id="monitor-gitlab"
datasource="datasource-gitlab"
interpreter="interpreter-gitlab"
index="index-gitlab"/>
</monitors>
</config>