ユーザ用ツール

サイト用ツール


サイドバー

このページの翻訳:



最近の更新



Tag Cloud

01_linux:13_storage:29_ceph_dashboard

文書の過去の版を表示しています。


29 Ceph Dashboard

1. Ceph Dashboard enable

ceph mgr module enable dashboard

2. SSL無効

これで、8443 → 8080 ポートになる。

ceph config set mgr mgr/dashboard/ssl false
# ceph mgr services
{
    "dashboard": "http://ceph01:8080/",
}


===== 3.ユーザ設定 =====

user:admin, pass:adminxxxx, role:administratorで設定する場合

<code>
# ceph dashboard ac-user-create admin adminxxxx administrator
{"username": "admin", "lastUpdate": 1592953680, "name": null, "roles": ["administrator"], "password": "$2b$12$iOz46vkfT.zR62AmZXXXXXXXXXXXXXXXAlTOIx1Gz3az1CwqRlFe", "email": null}

4. prometheus + Grafana

これ以降はPrometheus と Grafanaで、Cephの状態を見たい時

①.prometheus

cephのモジュールprometheus exporterをenableへ

ceph mgr module enable prometheus

②.情報取得したいRBD設定

ceph config set mgr mgr/prometheus/rbd_stats_pools glance,cinder,nova

③.

  mkdir /app/grafana
  # cat docker-compose.yml 
version: '3'
services:
  prometheus:
    image: prom/prometheus
    container_name: prometheus
    volumes:
      - ./prometheus:/etc/prometheus
    command: "--config.file=/etc/prometheus/prometheus.yaml"
    network_mode: "host"
    ports:
      - 9090:9090
    restart: always
  grafana:
    image: grafana/grafana:7.3.0
    container_name: grafana
    environment:
      - GF_SECURITY_ADMIN_PASSWORD=admin
      - GF_INSTALL_PLUGINS=vonage-status-panel,grafana-piechart-panel
    ports:
      - 3000:3000
    volumes:
      - ./grafana/grafana.ini:/etc/grafana/grafana.ini
    restart: always
  node-exporter:
    image: prom/node-exporter
    container_name: node-exporter
    ports:
      - 9100:9100
    restart: always
01_linux/13_storage/29_ceph_dashboard.1625719634.txt.gz · 最終更新: 2021/07/08 13:47 by matsui