# Copyright 2022 DigitalOcean # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Example usage of exporter in use # In this case, it depends on the proper ceph keys in the correct place. Adapt this to your use case if you would like to use in production # Change CEPHCONF below to path where your ceph.conf and keys are stored. # Also, change the password to the Grafana dashboard if you intend to use this further than just testing. version: '2' services: prometheus: image: prom/prometheus:v1.6.1 volumes: - ./prometheus.yml:/etc/prometheus/prometheus.yml volumes: - prometheus_data:/prometheus command: - -config.file=/etc/prometheus/prometheus.yml ports: - '9090:9090' ceph-exporter: image: digitalocean/ceph_exporter volumes: - $CEPHCONF:/etc/ceph ports: - '9128:9128' grafana: image: grafana/grafana:4.2.0 environment: - GF_SECURITY_ADMIN_PASSWORD=test volumes: - grafana_data:/var/lib/grafana depends_on: - prometheus ports: - "3000:3000"