chore: removed all exporters and prometheus
This commit is contained in:
+2
-73
@@ -112,20 +112,6 @@ services:
|
|||||||
start_interval: 2s
|
start_interval: 2s
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
celery-exporter:
|
|
||||||
image: docker.io/danihodovic/celery-exporter:0.11.1
|
|
||||||
depends_on:
|
|
||||||
redis:
|
|
||||||
restart: false
|
|
||||||
condition: service_healthy
|
|
||||||
required: true
|
|
||||||
env_file:
|
|
||||||
- path: ./infrastructure/celery-exporter/.env.template
|
|
||||||
required: true
|
|
||||||
- path: ./infrastructure/celery-exporter/.env
|
|
||||||
required: false
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
telegram_bot:
|
telegram_bot:
|
||||||
build:
|
build:
|
||||||
context: ./services/telegram_bot
|
context: ./services/telegram_bot
|
||||||
@@ -173,21 +159,6 @@ services:
|
|||||||
source: redis_data
|
source: redis_data
|
||||||
target: /data
|
target: /data
|
||||||
|
|
||||||
redis-exporter:
|
|
||||||
image: docker.io/oliver006/redis_exporter:v1.67.0-alpine
|
|
||||||
depends_on:
|
|
||||||
redis:
|
|
||||||
restart: false
|
|
||||||
condition: service_healthy
|
|
||||||
required: true
|
|
||||||
env_file:
|
|
||||||
- path: ./infrastructure/redis-exporter/.env.template
|
|
||||||
required: true
|
|
||||||
- path: ./infrastructure/redis-exporter/.env
|
|
||||||
required: false
|
|
||||||
restart: unless-stopped
|
|
||||||
shm_size: 4mb
|
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: docker.io/postgres:17-alpine3.21
|
image: docker.io/postgres:17-alpine3.21
|
||||||
configs:
|
configs:
|
||||||
@@ -216,21 +187,6 @@ services:
|
|||||||
source: postgres_data
|
source: postgres_data
|
||||||
target: /var/lib/postgresql/data
|
target: /var/lib/postgresql/data
|
||||||
|
|
||||||
postgres-exporter:
|
|
||||||
image: quay.io/prometheuscommunity/postgres-exporter:v0.16.0
|
|
||||||
depends_on:
|
|
||||||
postgres:
|
|
||||||
restart: false
|
|
||||||
condition: service_healthy
|
|
||||||
required: true
|
|
||||||
env_file:
|
|
||||||
- path: ./infrastructure/postgres-exporter/.env.template
|
|
||||||
required: true
|
|
||||||
- path: ./infrastructure/postgres-exporter/.env
|
|
||||||
required: false
|
|
||||||
restart: unless-stopped
|
|
||||||
shm_size: 4mb
|
|
||||||
|
|
||||||
pgadmin:
|
pgadmin:
|
||||||
image: docker.io/dpage/pgadmin4:9
|
image: docker.io/dpage/pgadmin4:9
|
||||||
configs:
|
configs:
|
||||||
@@ -301,33 +257,6 @@ services:
|
|||||||
source: ./infrastructure/grafana/scripts
|
source: ./infrastructure/grafana/scripts
|
||||||
target: /etc/grafana/scripts
|
target: /etc/grafana/scripts
|
||||||
|
|
||||||
prometheus:
|
|
||||||
image: docker.io/prom/prometheus:v3.1.0
|
|
||||||
command:
|
|
||||||
- "--config.file=/etc/prometheus/prometheus.yaml"
|
|
||||||
configs:
|
|
||||||
- source: prometheus_config
|
|
||||||
target: /etc/prometheus/prometheus.yaml
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "wget", "-O", "-", "http://localhost:9090/-/healthy"]
|
|
||||||
interval: 1m30s
|
|
||||||
timeout: 5s
|
|
||||||
start_period: 5s
|
|
||||||
start_interval: 2s
|
|
||||||
retries: 5
|
|
||||||
ports:
|
|
||||||
- name: web
|
|
||||||
target: 9090
|
|
||||||
published: 13244
|
|
||||||
host_ip: 127.0.0.1
|
|
||||||
protocol: tcp
|
|
||||||
restart: unless-stopped
|
|
||||||
shm_size: 4mb
|
|
||||||
volumes:
|
|
||||||
- type: volume
|
|
||||||
source: prometheus_data
|
|
||||||
target: /prometheus
|
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
command: server --console-address ":9001"
|
command: server --console-address ":9001"
|
||||||
image: docker.io/minio/minio:RELEASE.2025-02-03T21-03-04Z
|
image: docker.io/minio/minio:RELEASE.2025-02-03T21-03-04Z
|
||||||
@@ -346,12 +275,12 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- name: api
|
- name: api
|
||||||
target: 9000
|
target: 9000
|
||||||
published: 13245
|
published: 13244
|
||||||
host_ip: 127.0.0.1
|
host_ip: 127.0.0.1
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
- name: console
|
- name: console
|
||||||
target: 9001
|
target: 9001
|
||||||
published: 13246
|
published: 13245
|
||||||
host_ip: 127.0.0.1
|
host_ip: 127.0.0.1
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
CE_BROKER_URL=redis://redis:6379
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
DATA_SOURCE_URI=postgres:5432/postgres?sslmode=disable
|
|
||||||
DATA_SOURCE_USER=postgres
|
|
||||||
DATA_SOURCE_PASS=postgres
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
# Global config
|
|
||||||
global:
|
|
||||||
scrape_interval: 10s
|
|
||||||
scrape_timeout: 10s
|
|
||||||
evaluation_interval: 10m
|
|
||||||
external_labels:
|
|
||||||
environment: local
|
|
||||||
instance: somemachinelol
|
|
||||||
|
|
||||||
scrape_configs:
|
|
||||||
# Prometheus
|
|
||||||
- job_name: prometheus
|
|
||||||
scrape_interval: 5s
|
|
||||||
static_configs:
|
|
||||||
- targets: ["localhost:9090"]
|
|
||||||
|
|
||||||
# Postgres
|
|
||||||
- job_name: postgres
|
|
||||||
scrape_interval: 10s
|
|
||||||
static_configs:
|
|
||||||
- targets: ["postgres-exporter:9187"]
|
|
||||||
|
|
||||||
# Redis
|
|
||||||
- job_name: redis
|
|
||||||
scrape_interval: 10s
|
|
||||||
static_configs:
|
|
||||||
- targets: ["redis-exporter:9121"]
|
|
||||||
|
|
||||||
# Celery
|
|
||||||
- job_name: celery
|
|
||||||
scrape_interval: 30s
|
|
||||||
static_configs:
|
|
||||||
- targets: ["celery-exporter:9808"]
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
REDIS_ADDR=redis://redis:6379
|
|
||||||
REDIS_EXPORTER_PING_ON_CONNECT=true
|
|
||||||
@@ -11,7 +11,7 @@ Ensure you have the following installed on your system:
|
|||||||
|
|
||||||
## Warning
|
## Warning
|
||||||
|
|
||||||
Plese note that containers will use ports 13241 to 13246 and 8080, so there is must be no listeners on this ports range.
|
Plese note that containers will use ports 13241 to 13245 and 8080, so there is must be no listeners on this ports range.
|
||||||
|
|
||||||
## Install dependencies
|
## Install dependencies
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user