Skip to content

Commit

Permalink
chore(monitoring): remove unused snippet codes
Browse files Browse the repository at this point in the history
  • Loading branch information
igr-santos committed Sep 15, 2023
1 parent 489567a commit 03ca0ba
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 44 deletions.
1 change: 0 additions & 1 deletion app/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ whitenoise
svglib
reportlab
django-social-share
django-redis
64 changes: 32 additions & 32 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,41 +22,41 @@ services:
- traefik.http.routers.cms.tls.certresolver=myresolver
- traefik.http.routers.cms.rule=${TRAEFIK_ROUTERS_RULE:-"HostRegexp(`cms.staging.bonde.org`)"}

prometheus:
image: prom/prometheus
restart: 'no'
user: root
volumes:
- prometheus_data:/prometheus
- ./prometheus_data/prometheus.yml:/etc/prometheus/prometheus.yml
labels:
- traefik.enable=true
- traefik.http.services.prometheus.loadbalancer.server.port=9090
- traefik.http.routers.prometheus.tls=true
- traefik.http.routers.prometheus.tls.certresolver=myresolver
# prometheus:
# image: prom/prometheus
# restart: 'no'
# user: root
# volumes:
# - prometheus_data:/prometheus
# # - ./prometheus.yml:/etc/prometheus/prometheus.yml
# labels:
# - traefik.enable=true
# - traefik.http.services.prometheus.loadbalancer.server.port=9090
# - traefik.http.routers.prometheus.tls=true
# - traefik.http.routers.prometheus.tls.certresolver=myresolver

grafana:
image: grafana/grafana
user: root
environment:
GF_INSTALL_PLUGINS: "grafana-clock-panel,grafana-simple-json-datasource"
restart: 'no'
volumes:
- grafana_data:/var/lib/grafana
depends_on:
- prometheus
labels:
- traefik.enable=true
- traefik.http.services.grafana.loadbalancer.server.port=3000
- traefik.http.routers.grafana.tls=true
- traefik.http.routers.grafana.tls.certresolver=myresolver
# grafana:
# image: grafana/grafana
# user: root
# environment:
# GF_INSTALL_PLUGINS: "grafana-clock-panel,grafana-simple-json-datasource"
# restart: 'no'
# volumes:
# - grafana_data:/var/lib/grafana
# depends_on:
# - prometheus
# labels:
# - traefik.enable=true
# - traefik.http.services.grafana.loadbalancer.server.port=3000
# - traefik.http.routers.grafana.tls=true
# - traefik.http.routers.grafana.tls.certresolver=myresolver

networks:
default:
name: bonde

volumes:
prometheus_data:
driver: local
grafana_data:
driver: local
# volumes:
# prometheus_data:
# driver: local
# grafana_data:
# driver: local
9 changes: 0 additions & 9 deletions deploy/prometheus.yml

This file was deleted.

21 changes: 19 additions & 2 deletions locustfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
from locust import HttpUser, task

class HelloWorldUser(HttpUser):
class SimulateRequestOverUser(HttpUser):

@task
def hello_world(self):
def index(self):
self.client.get("/")

@task
def list(self):
self.client.get("/candidaturas/")

@task
def admin(self):
self.client.get("/admin")

@task
def not_found(self):
self.client.get("/not_found/asdasdasd")

@task
def form(self):
self.client.get("/candidaturas/cadastro/")

0 comments on commit 03ca0ba

Please sign in to comment.