File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ async def override_get_async_session():
3434
3535
3636@pytest_asyncio .fixture (scope = 'session' , autouse = True )
37- async def app ():
37+ async def app () -> AsyncGenerator [ LifespanManager , Any ] :
3838 @asynccontextmanager
3939 async def lifespan (app : FastAPI ):
4040 async with db_setup .engine .begin () as conn :
Original file line number Diff line number Diff line change @@ -140,13 +140,67 @@ services:
140140 labels :
141141 org.label-schema.group : " monitoring"
142142
143+ cadvisor :
144+ image : gcr.io/cadvisor/cadvisor:v0.47.1
145+ container_name : cadvisor
146+ privileged : true
147+ platform : linux/aarch64
148+ devices :
149+ - " /dev/kmsg:/dev/kmsg"
150+ volumes :
151+ - /var/run:/var/run:ro
152+ - /sys:/sys:ro
153+ - /var/lib/docker/:/var/lib/docker:ro
154+ - /var/run/docker.sock:/var/run/docker.sock:ro
155+ - /etc/machine-id:/etc/machine-id:ro
156+ - /var/lib/dbus/machine-id:/var/lib/dbus/machine-id:ro
157+ restart : unless-stopped
158+ expose :
159+ - 8081
160+ networks :
161+ - monitor-net
162+ labels :
163+ org.label-schema.group : " monitoring"
164+
165+ nodeexporter :
166+ image : prom/node-exporter:v0.18.1
167+ container_name : nodeexporter
168+ volumes :
169+ - /proc:/host/proc:ro
170+ - /sys:/host/sys:ro
171+ - /:/rootfs:ro
172+ command :
173+ - ' --path.procfs=/host/proc'
174+ - ' --path.rootfs=/rootfs'
175+ - ' --path.sysfs=/host/sys'
176+ - ' --collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
177+ restart : unless-stopped
178+ expose :
179+ - 9100
180+ networks :
181+ - monitor-net
182+ labels :
183+ org.label-schema.group : " monitoring"
184+
185+ pushgateway :
186+ image : prom/pushgateway:v1.2.0
187+ container_name : pushgateway
188+ restart : unless-stopped
189+ expose :
190+ - 9091
191+ networks :
192+ - monitor-net
193+ labels :
194+ org.label-schema.group : " monitoring"
195+
143196 caddy :
144197 image : stefanprodan/caddy
145198 container_name : caddy
146199 ports :
147200 - " 3000:3000"
148201 - " 9090:9090"
149202 - " 9093:9093"
203+ - " 9091:9091"
150204 - " 5555:5555"
151205 volumes :
152206 - ./caddy:/etc/caddy
You can’t perform that action at this time.
0 commit comments