forked from Layr-Labs/eigenda-operator-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include grafana dash in docker compose setup (Layr-Labs#38)
- Loading branch information
1 parent
2872d76
commit 21d6ce8
Showing
9 changed files
with
83 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
## Setup monitoring using docker | ||
If you want to set up monitoring using docker, you can use the following commands: | ||
## Setup monitoring using Docker | ||
If you want to set up monitoring using Docker, you can use the following commands: | ||
|
||
In the folder | ||
|
||
* Copy the [.env.example](./.env.example) file to `.env` file: | ||
```bash | ||
cp .env.example .env | ||
``` | ||
* Make sure your prometheus config [file](./prometheus.yml) is updated with the metrics port (`NODE_METRICS_PORT`) of the eigenda node. | ||
* Make sure the eigenda container name is also set correctly in the prometheus config file. | ||
You can find that in eigenda [.env](../.env) file (`MAIN_SERVICE_NAME`) | ||
* Make sure the location of prometheus file is correct in [.env](./.env) file | ||
* Make sure your Prometheus config [file](./prometheus.yml) is updated with the metrics port (`NODE_METRICS_PORT`) of the EigenDA node. | ||
* Make sure the EigenDA container name is also set correctly in the Prometheus config file. | ||
You can find that in EigenDA [.env](../.env.example) file (`MAIN_SERVICE_NAME`) | ||
* Make sure the location of prometheus file is correct in [.env](./.env.example) file | ||
|
||
Once correct config is set up, run the following command to start the monitoring stack | ||
```bash | ||
docker compose up -d | ||
``` | ||
|
||
Since eigenda is running in a different docker network we will need to have prometheus in the same network. To do that, run the following command: | ||
Your setup should ensure Prometheus is run in the same Docker network as EigenDA. Run the following command for this purpose: | ||
```bash | ||
docker network connect eigenda-network prometheus | ||
``` | ||
Note: `eigenda-network` is the name of the network in which eigenda is running. You can check the network name in eigenda [.env](../.env) file (`NETWORK_NAME`). | ||
Note: `eigenda-network` is the name of the network in which EigenDA is running. You can check the network name in EigenDA [.env](../.env.example) file (`NETWORK_NAME`). | ||
|
||
This will make sure `prometheus` can scrape the metrics from `eigenda` node. | ||
This will make sure `Prometheus` can scrape the metrics from `EigenDA` node. | ||
|
||
|
||
#### Useful Dashboards | ||
We also provide a set of useful Grafana dashboards which would be useful for monitoring the EigenDA node. You can find them [here](../dashboards). | ||
Once you have Grafana setup, feel free to import the dashboards. | ||
EigenDA offers a set of Grafana dashboards that are automatically imported when initializing the monitoring stack. |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: 1 | ||
|
||
# dashboard providers | ||
# Uses a single generic one for now. | ||
# see https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards | ||
providers: | ||
- name: 'Local Files' | ||
folder: '' # It will be automatically generated | ||
type: file | ||
disableDeletion: false | ||
editable: true | ||
allowUiUpdates: true | ||
updateIntervalSeconds: 10 | ||
options: | ||
path: /etc/grafana/provisioning/dashboards | ||
foldersFromFilesStructure: true |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters