Configuration

global:
  scrape_interval: 30s
  scrape_timeout: 10s
  evaluation_interval: 30s
  external_labels:
    monitor: sgu
alerting:
  alertmanagers:
  - scheme: http
    timeout: 10s
    api_version: v1
    static_configs:
    - targets:
      - monitor.sgu.ru:9093
rule_files:
- /etc/prometheus/custom.rules.yml
- /etc/prometheus/ups.rules.yml
- /etc/prometheus/node.rules.yml
- /etc/prometheus/self.rules.yml
- /etc/prometheus/blackbox.rules.yml
- /etc/prometheus/windows.rules.yml
- /etc/prometheus/mysql.rules.yml
scrape_configs:
- job_name: prometheus
  honor_timestamps: true
  scrape_interval: 5s
  scrape_timeout: 5s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - localhost:9090
- job_name: alertmanager
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - localhost:9093
- job_name: squid
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - proxy.sgu.ru:8089
- job_name: wpad
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - proxy.sgu.ru:12319
- job_name: etcd
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: https
  tls_config:
    insecure_skip_verify: true
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - vuvuzela.sgu.ru:2379
    - proxy.sgu.ru:2379
- job_name: rtpengine
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - gw.sgu.ru:2343
- job_name: advfiler
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - ns.sgu.ru:8065
- job_name: dhcpserv
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - ns.sgu.ru:12119
    - proxy.sgu.ru:12119
- job_name: bind
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - ns.sgu.ru:9119
    - proxy.sgu.ru:9119
- job_name: borgbackup
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - slon.sgu.ru:8848
- job_name: hostserver
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - ducker.sgu.ru:8908
- job_name: postfix
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - mail.sgu.ru:9154
- job_name: node
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - ducker.sgu.ru:9100
    - ns.sgu.ru:9100
    - proxy.sgu.ru:9100
    - vuvuzela.sgu.ru:9100
    - arcane.stingr.net:9100
    - deploy-12.sgu.ru:9100
    - monitor.sgu.ru:9100
    - sharik.sgu.ru:9100
    - sus.sgu.ru:9182
    - invoker001.main.sgu.ru:9182
    - grapefruit.sgu.ru:9100
    - turboo.main.sgu.ru:9182
    - mega.sgu.ru:9100
    - geocol.sgu.ru:9100
    - bg.sgu.ru:9100
    - vgw11.sgu.ru:9100
    - lama.main.sgu.ru:9182
    - bear.main.sgu.ru:9182
    - chuzzle.main.sgu.ru:9182
    - cluster.sgu.ru:9100
    - halva.sgu.ru:9100
    - trombone.sgu.ru:9100
    - gw.sgu.ru:9100
    - nbbuhserver.sgu.ru:9182
    - nbdcserver.sgu.ru:9182
    - nbfs.sgu.ru:9100
    - slon.sgu.ru:9100
    - trombone.sgu.ru:9100
    - walrus.sgu.ru:9100
    - kyserv.sgu.ru:9182
- job_name: windows
  honor_timestamps: true
  scrape_interval: 1m
  scrape_timeout: 1m
  metrics_path: /metrics
  scheme: http
  file_sd_configs:
  - files:
    - /var/lib/prometheus/hosts/windows.json
    refresh_interval: 5m
- job_name: invoker
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - invoker23-01.main.sgu.ru:9182
    - invoker23-02.main.sgu.ru:9182
- job_name: contest_windows
  honor_timestamps: true
  scrape_interval: 1m
  scrape_timeout: 1m
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __address__
    replacement: ${1}:9182
    action: replace
  file_sd_configs:
  - files:
    - /var/lib/prometheus/hosts/contest.json
    refresh_interval: 5m
- job_name: smart
  honor_timestamps: true
  scrape_interval: 1m
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - stingr.net:9257
    - ducker.sgu.ru:9257
    - ns.sgu.ru:9257
    - proxy.sgu.ru:9257
    - arcane.stingr.net:9257
    - deploy-12.sgu.ru:9257
    - monitor.sgu.ru:9257
    - sharik.sgu.ru:9257
    - grapefruit.sgu.ru:9257
    - mega.sgu.ru:9257
    - geocol.sgu.ru:9257
    - bg.sgu.ru:9257
    - vgw11.sgu.ru:9257
    - halva.sgu.ru:9257
    - trombone.sgu.ru:9257
    - gw.sgu.ru:9257
    - nbfs.sgu.ru:9257
    - cluster.sgu.ru:9257
    - slon.sgu.ru:9257
- job_name: snmp
  honor_timestamps: true
  params:
    module:
    - if_mib
  scrape_interval: 1m
  scrape_timeout: 58s
  metrics_path: /snmp
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: localhost:9116
    action: replace
  file_sd_configs:
  - files:
    - /var/lib/prometheus/hosts/switches.json
    - /var/lib/prometheus/hosts/mikrotik.json
    - /etc/prometheus/lyafcomm.json
    - /etc/prometheus/danos.json
    refresh_interval: 5m
- job_name: apcsnmp
  honor_timestamps: true
  params:
    module:
    - apcups
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /snmp
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: localhost:9116
    action: replace
  file_sd_configs:
  - files:
    - /var/lib/prometheus/hosts/ups.json
    refresh_interval: 5m
- job_name: upssnmp
  honor_timestamps: true
  params:
    module:
    - rfc1628_ups
  scrape_interval: 1m
  scrape_timeout: 1m
  metrics_path: /snmp
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: localhost:9116
    action: replace
  file_sd_configs:
  - files:
    - /var/lib/prometheus/hosts/legrand.json
    refresh_interval: 5m
- job_name: printersnmp
  honor_timestamps: true
  params:
    module:
    - printer_mib
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /snmp
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: localhost:9116
    action: replace
  static_configs:
  - targets:
    - 192.168.150.93
- job_name: snmpciscoasr
  honor_timestamps: true
  params:
    module:
    - ciscoasr
  scrape_interval: 1m
  scrape_timeout: 58s
  metrics_path: /snmp
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: localhost:9116
    action: replace
  file_sd_configs:
  - files:
    - /etc/prometheus/ciscoasr.json
    refresh_interval: 5m
- job_name: upTime
  honor_timestamps: true
  params:
    module:
    - upTime
  scrape_interval: 1m
  scrape_timeout: 58s
  metrics_path: /snmp
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: localhost:9116
    action: replace
  file_sd_configs:
  - files:
    - /var/lib/prometheus/hosts/switches.json
    refresh_interval: 5m
- job_name: snmpprocurve
  honor_timestamps: true
  params:
    module:
    - procurve
  scrape_interval: 1m
  scrape_timeout: 58s
  metrics_path: /snmp
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: localhost:9116
    action: replace
  file_sd_configs:
  - files:
    - /var/lib/prometheus/hosts/switches.json
    refresh_interval: 5m
- job_name: dmc1002
  honor_timestamps: true
  params:
    module:
    - dlink
  scrape_interval: 1m
  scrape_timeout: 58s
  metrics_path: /snmp
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: localhost:9116
    action: replace
  static_configs:
  - targets:
    - 192.168.109.81
    - 192.168.109.80
- job_name: blackbox_exporter
  honor_timestamps: true
  params:
    module:
    - http_2xx
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /probe
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - source_labels: [__param_target]
    separator: ;
    regex: (.*)
    target_label: instance
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: 127.0.0.1:9115
    action: replace
  file_sd_configs:
  - files:
    - /var/lib/prometheus/hosts/site.json
    refresh_interval: 5m
  static_configs:
  - targets:
    - https://sgu.ru
    - http://eip.sgu.ru
    - https://rabota.sgu.ru
    - https://prometheus.sgu.ru
    - https://grafana.sgu.ru
- job_name: ATS
  honor_timestamps: true
  params:
    module:
    - icmp_ipv4
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /probe
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - source_labels: [__param_target]
    separator: ;
    regex: (.*)
    target_label: instance
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: 127.0.0.1:9115
    action: replace
  static_configs:
  - targets:
    - 192.168.111.131
- job_name: nginx
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - halva.sgu.ru:9113
    - ns.sgu.ru:9113
    - oboe.sgu.ru:9113
    - trombone.sgu.ru:9113
    - cluster.sgu.ru:9113
    - monitor.sgu.ru:9113
    - slon.sgu.ru:9113
    - walrus.sgu.ru:9113
    - bg.sgu.ru:9113
- job_name: mysql
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - trombone.sgu.ru:9104
    - halva.sgu.ru:9104
    - ns.sgu.ru:9104
    - cluster.sgu.ru:9104
- job_name: omada
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - localhost:14274
- job_name: unifi
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - localhost:9130
- job_name: clickhouse
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - ns.sgu.ru:9116
- job_name: wireguard
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - proxy.sgu.ru:9586
- job_name: dovecot
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - ns.sgu.ru:9900
- job_name: libvirt
  honor_timestamps: true
  scrape_interval: 1m
  scrape_timeout: 58s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - walrus.sgu.ru:9177
- job_name: radauthserv
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - proxy.sgu.ru:12001
    - ns.sgu.ru:12001
    - gw.sgu.ru:12001
- job_name: fail2ban
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - ns.sgu.ru:9191
    - trombone.sgu.ru:9191
- job_name: nginx_certificate
  honor_timestamps: true
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.+):(.+)
    target_label: instance
    replacement: $1
    action: replace
  static_configs:
  - targets:
    - ns.sgu.ru:13464
    - proxy.sgu.ru:13464
    - halva.sgu.ru:13464
    - monitor.sgu.ru:13464
    - trombone.sgu.ru:13464