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

where is 'prometheus.yaml' ?? #34

Closed
A-RaPhaellL opened this issue Jun 11, 2020 · 11 comments
Closed

where is 'prometheus.yaml' ?? #34

A-RaPhaellL opened this issue Jun 11, 2020 · 11 comments

Comments

@A-RaPhaellL
Copy link

Hi,
In this guide,

https://bigbluebutton-exporter.greenstatic.dev/installation/bigbluebutton_exporter/#docker-installation-recommended

In the eighth step says: "Add the exporter to your Prometheus configuration."
but question is where is it(prometheus.yaml) ???

@greenstatic
Copy link
Owner

The installation instructions for BigBlueButton exporter assume you have a working Prometheus and Grafana installation, since BigBlueButton exporter is an extension that allows a BigBlueButton server to be "plugged in" your Grafana/Prometheus monitoring infrastructure.

Since many people don't have existing monitoring infrastructure there is an alternative installation targeting administrators who only have a single BigBlueButton server - All in one monitoring stack. This is not a scalable solution if you have multiple BigBlueButton servers because each BBB server would have a Prometheus/Grafana instance which is a bit of a nonsense.

If you have multiple BBB servers I suggest you follow Prometheus and Grafana installation instructions on how to setup "proper" monitoring infrastructure.

@A-RaPhaellL
Copy link
Author

Hi,
Thanks for your guidance
We fix this problem by install 'Prometheus' and config it to 'Grafana'.
but now we have a new problem.

All of our panels show 'NO DATA'.

@greenstatic
Copy link
Owner

First check if your Prometheus instance is correctly configured and scraping the exporter metrics - https://bigbluebutton-exporter.greenstatic.dev/debugging/#checking-if-prometheus-is-scraping-correctly

If Prometheus is correctly scraping then the issue is between Prometheus <-> Grafana. Check that you have configured your data source correctly in the Grafana settings.

@A-RaPhaellL
Copy link
Author

I run this command:
ssh -NL 9090:127.0.0.1:9090 server.example.com

and get this error:
ssh: connect to host server.example.com port 22: Connection refused

could you please say me what is the problem ?

@greenstatic
Copy link
Owner

You are connecting via SSH to your prometheus server. Are you sure you are connecting to it correctly - prometheus server ssh running on port 22, prometheus running on port 9090 and the correct host (server.example.com)?

@greenstatic
Copy link
Owner

Have you managed to debug your issue?

@A-RaPhaellL
Copy link
Author

Thank you for your response and follow-up to solve my problem.
I think I found my problem.

When I check this link after install 'Exporter'.
'example.com/metrics'
It's showing me the '404 not found' page.

So I went and checked the 'docker'.
docker ps -a

And I saw my 'docker' restarting again on again.
You have any idea to help me?

@greenstatic
Copy link
Owner

FYI: The -a flag displays besides running/restarting containers, stopped containers. If your container keeps on restarting the flag isn't necessary.

Run docker logs --tail 30 <container_name>, the container name can be found from the docker ps output under the NAMES column. The last 30 lines should suffice to narrow down the issue (if you do not include tail option docker will output all the logs of your restarting container which is, well, a lot :) ).

@A-RaPhaellL
Copy link
Author

Thanks again for your help.
My problem was solved.
I take a log and realized that 'docker' could not be connected to the 'recording' folder.
I found out that I don't have any record and maybe no folder has been created for it.
I make a record and tried the 'docker' again and everything worked fine.
I continue, I hope there will be no problem again.

@A-RaPhaellL
Copy link
Author

After that, I had a new problem that I solved.
I realized that my 'bbb_node_exporter' could not be connected and show 'Unauthorized' error.

So I went and check the steps again, which was in Linz below.
https://bigbluebutton-exporter.greenstatic.dev/installation/node_exporter/

I realize that the fifth step has a problem.
No information about 'user' and 'pass' given to 'Prometheus'.
The correct file format should look like this:

  - job_name: 'bbb_node_exporter'
    metrics_path: '/node_exporter/metrics'
    params:
      format: [prometheus]
    honor_labels: true
    scheme: https
    basic_auth:
      username: "<HTTP BASIC AUTH USERNAME>"
      password: "<HTTP BASIC AUTH PASSWORD>"
    static_configs:
    - targets: ['example.com']

After fix that, the site information, came up in the 'Monitoring'.

Finally, with your help, I was able to do it.
Thank you for your time and guidance.

@greenstatic
Copy link
Owner

Thanks for the warning regarding the documentation. I'll update it shortly. Glad it works 💪

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