Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
7c028215
Unverified
Commit
7c028215
authored
Aug 31, 2023
by
Wyatt Barnes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Init standard UFM Test Service architecture
parent
95fe7e47
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
0 deletions
+79
-0
.env.example
ufm-test-services/.env.example
+7
-0
crontab-example
ufm-test-services/crontab-example
+8
-0
datesources.yml
ufm-test-services/datesources.yml
+8
-0
docker-compose.yml
ufm-test-services/docker-compose.yml
+49
-0
prometheus.yml
ufm-test-services/prometheus.yml
+7
-0
No files found.
ufm-test-services/.env.example
0 → 100644
View file @
7c028215
CI=false
GRAFANA_ADMIN_PWD=
# Used to set the display to be used by playwright when running Metamask test service
MM_DISPLAY=host.docker.internal:0
MM_DISPLAY_VOLUME=/tmp/.X11-unix:/tmp/.X11-unix
\ No newline at end of file
ufm-test-services/crontab-example
0 → 100644
View file @
7c028215
# Needs to point to docker, otherwise you'll get the error: exec: "docker": executable file not found in $PATH
PATH=/
# Runs every minute
* * * * * /usr/local/bin/docker-compose -f /path/to/docker-compose.yml --profile 1minute up -d
# Runs every 5 minutes
*/5 * * * * /usr/local/bin/docker-compose -f /path/to/docker-compose.yml --profile 5minutes up -d
ufm-test-services/datesources.yml
0 → 100644
View file @
7c028215
apiVersion
:
1
datasources
:
-
name
:
Prometheus
type
:
prometheus
access
:
proxy
url
:
http://prometheus:9090
isDefault
:
true
ufm-test-services/docker-compose.yml
0 → 100644
View file @
7c028215
version
:
"
3"
services
:
pushgateway
:
image
:
prom/pushgateway
ports
:
-
"
9091:9091"
restart
:
unless-stopped
read_only
:
true
security_opt
:
-
"
no-new-privileges:true"
prometheus
:
image
:
prom/prometheus:latest
container_name
:
prometheus
ports
:
-
"
9090:9090"
volumes
:
-
./prometheus.yml:/etc/prometheus/prometheus.yml
depends_on
:
-
pushgateway
command
:
-
'
--config.file=/etc/prometheus/prometheus.yml'
read_only
:
true
security_opt
:
-
"
no-new-privileges:true"
grafana
:
image
:
grafana/grafana:latest
container_name
:
grafana
ports
:
-
"
3000:3000"
depends_on
:
-
prometheus
environment
:
-
GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PWD}
volumes
:
-
./datesources.yml:/etc/grafana/provisioning/datasources/datasources.yaml
security_opt
:
-
"
no-new-privileges:true"
# Example Test Service Config
# my_test_service:
# build: ./my_test_service_dir
# container_name: my_test_service
# profiles: ["1minute"]
# depends_on:
# - prometheus
# restart: no
ufm-test-services/prometheus.yml
0 → 100644
View file @
7c028215
global
:
scrape_interval
:
5s
scrape_configs
:
-
job_name
:
'
pushgateway'
static_configs
:
-
targets
:
[
'
pushgateway:9091'
]
\ No newline at end of file
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