changing monitoring ports to 6xxx family

This commit is contained in:
Jose Henrique 2025-06-07 14:21:16 -03:00
parent 269c6beff3
commit a643ad58e5
5 changed files with 18 additions and 17 deletions

View File

@ -106,8 +106,8 @@ services: # ──────────────────────
container_name: opencand_loki container_name: opencand_loki
restart: unless-stopped restart: unless-stopped
ports: ports:
- "127.0.0.1:3100:3100" - "127.0.0.1:6100:3100"
- "10.8.0.3:3100:3100" - "10.8.0.3:6100:3100"
command: -config.file=/etc/loki/local-config.yaml command: -config.file=/etc/loki/local-config.yaml
volumes: volumes:
- ./monitoring/loki-config.yaml:/etc/loki/local-config.yaml - ./monitoring/loki-config.yaml:/etc/loki/local-config.yaml
@ -131,14 +131,15 @@ services: # ──────────────────────
command: -config.file=/etc/promtail/config.yml command: -config.file=/etc/promtail/config.yml
depends_on: depends_on:
- loki - loki
# Prometheus - Metrics collection # Prometheus - Metrics collection
prometheus: prometheus:
image: prom/prometheus:v2.45.0 image: prom/prometheus:v2.45.0
container_name: opencand_prometheus container_name: opencand_prometheus
restart: unless-stopped restart: unless-stopped
ports: ports:
- "127.0.0.1:9090:9090" - "127.0.0.1:6090:9090"
- "10.8.0.3:9090:9090" - "10.8.0.3:6090:9090"
command: command:
- "--config.file=/etc/prometheus/prometheus.yml" - "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus" - "--storage.tsdb.path=/prometheus"
@ -156,8 +157,8 @@ services: # ──────────────────────
container_name: opencand_node_exporter container_name: opencand_node_exporter
restart: unless-stopped restart: unless-stopped
ports: ports:
- "127.0.0.1:9100:9100" - "127.0.0.1:6100:9100"
- "10.8.0.3:9100:9100" - "10.8.0.3:6100:9100"
volumes: volumes:
- /proc:/host/proc:ro - /proc:/host/proc:ro
- /sys:/host/sys:ro - /sys:/host/sys:ro
@ -173,8 +174,8 @@ services: # ──────────────────────
container_name: opencand_grafana container_name: opencand_grafana
restart: unless-stopped restart: unless-stopped
ports: ports:
- "127.0.0.1:3000:3000" - "127.0.0.1:6000:3000"
- "10.8.0.3:3000:3000" - "10.8.0.3:6000:3000"
environment: environment:
- GF_SECURITY_ADMIN_PASSWORD=admin - GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false - GF_USERS_ALLOW_SIGN_UP=false

View File

@ -4,7 +4,7 @@ datasources:
- name: Loki - name: Loki
type: loki type: loki
access: proxy access: proxy
url: http://loki:3100 url: http://loki:6100
isDefault: false isDefault: false
jsonData: jsonData:
maxLines: 1000 maxLines: 1000
@ -12,5 +12,5 @@ datasources:
- name: Prometheus - name: Prometheus
type: prometheus type: prometheus
access: proxy access: proxy
url: http://prometheus:9090 url: http://prometheus:6090
isDefault: true isDefault: true

View File

@ -1,8 +1,8 @@
auth_enabled: false auth_enabled: false
server: server:
http_listen_port: 3100 http_listen_port: 6100
grpc_listen_port: 9096 grpc_listen_port: 6096
common: common:
path_prefix: /loki path_prefix: /loki
@ -34,7 +34,7 @@ schema_config:
period: 24h period: 24h
ruler: ruler:
alertmanager_url: http://localhost:9093 alertmanager_url: http://localhost:6093
# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration # By default, Loki will send anonymous, but uniquely-identifiable usage and configuration
# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/ # analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/

View File

@ -9,11 +9,11 @@ rule_files:
scrape_configs: scrape_configs:
- job_name: 'prometheus' - job_name: 'prometheus'
static_configs: static_configs:
- targets: ['localhost:9090'] - targets: ['localhost:6090']
- job_name: 'node-exporter' - job_name: 'node-exporter'
static_configs: static_configs:
- targets: ['node-exporter:9100'] - targets: ['node-exporter:6100']
- job_name: 'opencand-api' - job_name: 'opencand-api'
static_configs: static_configs:

View File

@ -1,12 +1,12 @@
server: server:
http_listen_port: 9080 http_listen_port: 6080
grpc_listen_port: 0 grpc_listen_port: 0
positions: positions:
filename: /tmp/positions.yaml filename: /tmp/positions.yaml
clients: clients:
- url: http://loki:3100/loki/api/v1/push - url: http://loki:6100/loki/api/v1/push
scrape_configs: scrape_configs:
# Docker container logs # Docker container logs