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
f0e09240
Unverified
Commit
f0e09240
authored
Sep 08, 2023
by
OptimismBot
Committed by
GitHub
Sep 08, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7148 from ethereum-optimism/wyatt/ufm/init
Init standard UFM Test Service architecture
parents
4fc9050d
1eede657
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
0 deletions
+73
-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
+50
-0
prometheus.yml
ufm-test-services/prometheus.yml
+7
-0
No files found.
ufm-test-services/crontab-example
0 → 100644
View file @
f0e09240
# 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
\ No newline at end of file
ufm-test-services/datesources.yml
0 → 100644
View file @
f0e09240
apiVersion
:
1
datasources
:
-
name
:
Prometheus
type
:
prometheus
access
:
proxy
url
:
http://prometheus:9090
isDefault
:
true
\ No newline at end of file
ufm-test-services/docker-compose.yml
0 → 100644
View file @
f0e09240
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
:
# TODO - Replace with ENV variables to allow for better security
-
GF_SECURITY_ADMIN_PASSWORD=adminpassword
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 @
f0e09240
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