Skip to content

Commit

Permalink
Merge pull request #35 from wednesday-solutions/feat/percona_integration
Browse files Browse the repository at this point in the history
Feat: Percona Integration
  • Loading branch information
anasnadeemws authored Mar 19, 2024
2 parents 889cc62 + d3b81ac commit 91ae8a5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
30 changes: 30 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ services:
retries: 3
depends_on:
- redis
volumes:
- db:/var/lib/mysql
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d

networks:
- fast-api-network

Expand Down Expand Up @@ -75,7 +79,33 @@ services:
- worker
networks:
- fast-api-network
pmm-server:
image: percona/pmm-server:latest
ports:
- "443:443"
volumes:
- pmm-data:/srv
environment:
SERVER_USER: admin
SERVER_PASSWORD: admin
networks:
- fast-api-network

pmm-client:
image: percona/pmm-client:latest
environment:
PMM_SERVER: pmm-server
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/host:ro
networks:
- fast-api-network

networks:
fast-api-network:
driver: bridge

volumes:
db:
pmm-data:
5 changes: 5 additions & 0 deletions docker-entrypoint-initdb.d/init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
INSTALL PLUGIN QUERY_RESPONSE_TIME_AUDIT SONAME 'query_response_time.so';
INSTALL PLUGIN QUERY_RESPONSE_TIME SONAME 'query_response_time.so';
INSTALL PLUGIN QUERY_RESPONSE_TIME_READ SONAME 'query_response_time.so';
INSTALL PLUGIN QUERY_RESPONSE_TIME_WRITE SONAME 'query_response_time.so';
SET GLOBAL query_response_time_stats=ON;

1 comment on commit 91ae8a5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
app
   app.py312423%10–61
app/config
   __init__.py3167%6
   base.py32391%44–46
   celery_config.py16160%1–25
   celery_utils.py20200%1–28
   redis_config.py4325%2–6
app/constants
   jwt_utils.py151127%7–19
app/daos
   home.py10550%11–18
   users.py716311%12–134
app/middlewares
   cache_middleware.py52520%1–68
   rate_limiter_middleware.py24240%1–32
   request_id_injection.py17170%1–25
app/models
   __init__.py330%1–5
   users.py27270%1–38
app/routes
   __init__.py11110%1–13
app/routes/cache_router
   __init__.py220%1–3
   cache_samples.py11110%1–15
app/routes/celery_router
   __init__.py220%1–3
   celery_samples.py11110%1–14
app/routes/home
   __init__.py220%1–3
   home.py33330%1–45
app/routes/users
   __init__.py220%1–3
   users.py38380%1–57
app/schemas/users
   users_request.py41410%1–70
   users_response.py880%1–11
app/sessions
   db.py53530%1–82
app/tests
   test_basic.py201525%10–34
   test_daos_home.py241058%14–21, 27–36, 39
   test_daos_users.py1109514%19–208
app/utils
   exception_handler.py19190%1–36
   redis_utils.py330%1–5
   slack_notification_utils.py13130%1–29
   user_utils.py25250%1–36
app/wrappers
   cache_wrappers.py19190%1–27
TOTAL78868213% 

Tests Skipped Failures Errors Time
2 0 💤 0 ❌ 2 🔥 0.769s ⏱️

Please sign in to comment.