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

How to disable Prometheus when running couchbase as container #184

Open
naveenkumarsp opened this issue Jun 29, 2022 · 2 comments
Open

How to disable Prometheus when running couchbase as container #184

naveenkumarsp opened this issue Jun 29, 2022 · 2 comments

Comments

@naveenkumarsp
Copy link

When i ran the couchbase container using docker-compose, i found the CB is taking way too much CPU and noticed Prometheus and beam.smp process was taking roughly taking 700m CPU all the time.

I am wondering how we can disable Prometheus on containers, is there any environment flag that can be used to disable Prometheus.
Also, i noticed that there were about 60+ connections to the couchbase even after creating the container. Do Prometheus and other services use the connections to gather metrics? Is there any way we can trace the connections by source?

@ceejatec
Copy link
Contributor

@naveenkumarsp What does "700m CPU" mean? What does "60+ connections to the couchbase" mean?

What exactly did you run in your docker-compose file?

@naveenkumarsp
Copy link
Author

naveenkumarsp commented Jun 30, 2022

i mean to say its using 700milicores of a single CPU(70% of a single CPU). Basically, I use Prometheus as part of my compose file where I am using couchbase-exporter to collect CB stats.

Also, I am wondering if by disabling the Prometheus will be anything that we will lose except the in-built stats(which I am always collecting via couchbase-exporter).

Here is the CB part of the compose file which i am using.

CB exporter collects the connections stats which was 77 without any client being connected

  couchbase:
    image: couchbase:community-7.0.2
    container_name: couchbase
    environment:
      - COUCHBASE_ADMINISTRATOR_USERNAME=Administrator
      - COUCHBASE_ADMINISTRATOR_PASSWORD=password
      - CLUSTER_NAME=test
    volumes:
      - couchbase-data:/opt/couchbase/var
    restart: on-failure
    ports:
      - "8091-8094:8091-8094"
      - "11210-11211:11210-11211"
      - "18091-18093:18091-18093"
    networks:
      - database

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

No branches or pull requests

2 participants