mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Add monitoring capabilities with Grafana and Prometheus
This commit is contained in:
35
README.md
35
README.md
@@ -10,6 +10,7 @@ A self-hosted Stremio addon for streaming torrents via a debrid service.
|
||||
- [Using](#using)
|
||||
- [Initial setup (optional)](#initial-setup-optional)
|
||||
- [Run the project](#run-the-project)
|
||||
- [Monitoring with Grafana and Prometheus (Optional)](#monitoring-with-grafana-and-prometheus-optional)
|
||||
- [Importing external dumps](#importing-external-dumps)
|
||||
- [Import data into database](#import-data-into-database)
|
||||
- [INSERT INTO ingested\_torrents](#insert-into-ingested_torrents)
|
||||
@@ -64,6 +65,40 @@ It will take a while to find and add the torrents to the database. During initia
|
||||
|
||||
To add the addon to Stremio, open a web browser and navigate to: [http://127.0.0.1:7000](http://127.0.0.1:7000)
|
||||
|
||||
### Monitoring with Grafana and Prometheus (Optional)
|
||||
|
||||
To enhance your monitoring capabilities, you can use Grafana and Prometheus in addition to RabbitMQ's built-in management interface. This allows you to visualize and analyze RabbitMQ metrics with more flexibility.
|
||||
|
||||
#### Accessing RabbitMQ Management
|
||||
|
||||
You can still monitor RabbitMQ by accessing its management interface at [http://127.0.0.1:15672/](http://127.0.0.1:15672/). Use the provided credentials to log in and explore RabbitMQ's monitoring features (the default username and password are `guest`).
|
||||
|
||||
#### Using Grafana and Prometheus
|
||||
|
||||
Here's how to set up and use Grafana and Prometheus for monitoring RabbitMQ:
|
||||
|
||||
1. **Start Grafana and Prometheus**: Run the following command to start both Grafana and Prometheus:
|
||||
|
||||
```bash
|
||||
docker-compose -f docker-compose-metrics.yml up -d
|
||||
```
|
||||
|
||||
- Grafana will be available at [http://127.0.0.1:3000](http://127.0.0.1:3000).
|
||||
- Prometheus will be available at [http://127.0.0.1:9090](http://127.0.0.1:9090).
|
||||
|
||||
- The default admin user for Grafana is `admin`, and the password is `admin_password`.
|
||||
|
||||
2. **Import Grafana Dashboard**: Import the RabbitMQ monitoring dashboard into Grafana:
|
||||
|
||||
- You can use the following dashboard from Grafana's official library: [RabbitMQ Overview Dashboard](https://grafana.com/grafana/dashboards/10991-rabbitmq-overview/).
|
||||
|
||||
The Prometheus data source is already configured in Grafana, you just have to select it when importing the dashboard.
|
||||
|
||||
|
||||
Now, you can use the imported dashboard to visualize RabbitMQ metrics collected by Prometheus.
|
||||
|
||||
Note: If you encounter issues with missing or unavailable data in Grafana, please ensure on [Prometheus's target page](http://127.0.0.1:9090/targets) that the RabbitMQ target is up and running.
|
||||
|
||||
## Importing external dumps
|
||||
|
||||
A brief record of the steps required to import external data, in this case the rarbg dump which can be found on RD:
|
||||
|
||||
Reference in New Issue
Block a user