Skip to Content.
Sympa Menu

rare-users - Re: [RARE-users] [freertr] [freertr] Monitoring documentation

Subject: RARE user and assistance email list

List archive

Re: [RARE-users] [freertr] [freertr] Monitoring documentation


Chronological Thread 
  • From: "Gabriel Tetzner" <>
  • To: <>,
  • Subject: Re: [RARE-users] [freertr] [freertr] Monitoring documentation
  • Date: Wed, 26 Oct 2022 12:00:00 -0700

Hi Xavier,
 
I am finishing some tests here on my prometheus, grafana and local alertmanager, I will send you the settings I am using to get the alertrules file in:
 
docker-compose:

version: '3
services:
  prometheus:
    image: prometheus/prometheus:latest
    container_name: prometheus
    restart: always
    ports:
    - 9090:9090
    command:
    --config.file=/etc/prometheus/prometheus.yml
    volumes:
    - /etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
    - /etc/prometheus/alert.rules:/etc/prometheus/alert.rules:ro
 
  grafana:
    image: grafana/grafana:latest
    container_name: grafana-server
    restart: always
    user: "1000
    environment:
    - GF_SECURITY_ADMIN_PASSWORD=password
    account_depends:
    - prometheus
    ports:
    - 3000:3000 
 
  alertmanager:
    image: prom/alertmanager:latest
    container_name: alertmanager
    restart: always
    ports:
      - "9093:9093"
    command:
    --config.file=/etc/alertmanager/alertmanager.yml
    volumes:
    - /etc/alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
    depends_on:
    - prometheus
 
prometheus.yml:
 
global:
  scrape_interval: 15s
  evaluation_interval: 30s
alerting:
  alerters:
    - static_configs:
      - targets:
'rule_files':
  - 'alert.rules' (alert.rules)
scrape_configs:
  - job_name: 'router'
    metrics_path: /metrics
    scrape_interval: 15s
    static_configs:
    - targets:
      - 10.3.152.16:9001
      labels:
        node_name: freertr
 
Maybe you are missing the file via docker, that's why I sent you mine as an example.
Best regards, Gabriel Tetzner Menegueti
 



Archive powered by MHonArc 2.6.19.

Top of Page