Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ceph-exporter: add support for launching the exporter daemon #89

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

piyushagarwal1411
Copy link

@piyushagarwal1411 piyushagarwal1411 commented Nov 26, 2024

This PR adds support for optionally launching the ceph-exporter daemon in the Ceph environment setup. A new --exporter command-line option is introduced to the vstart.sh script (ceph/ceph#60623), allowing users to enable or disable the exporter daemon. The changes include:

  1. docker-compose.yml:

    • Added a new environment variable EXPORTER with a default value of 0. The variable can be set to 1 to enable the exporter.
  2. docker/ceph/rpm/Dockerfile:

    • Included the installation of ceph-exporter in the Docker image by adding it to the dnf install command, ensuring that the exporter daemon is available in the container.
  3. docker/ceph/set-start-env.sh:

    • Modified the script to check for the EXPORTER flag. If set to 1, the --exporter option is added to the VSTART_OPTIONS, triggering the startup of the exporter daemon when the environment is initialized.
  4. docker/prometheus/ceph-exporter-targets.yml (new file):

    • Added a new configuration file to define the ceph-exporter targets for Prometheus scraping.
  5. docker/prometheus/prometheus.yml:

    • Configured Prometheus to scrape metrics from the ceph-exporter by adding a new job for the exporter and using the ceph-exporter-targets.yml file for the target configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant