Skip to content

Commit

Permalink
style: rename grafana template files path
Browse files Browse the repository at this point in the history
Signed-off-by: Rory Z <16801068+Rory-Z@users.noreply.github.com>
  • Loading branch information
Rory-Z committed Oct 10, 2023
1 parent 443f5af commit e3107be
Show file tree
Hide file tree
Showing 30 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The `emqx-exporter` is designed to expose partial metrics that are not included
![Structure](https://assets.emqx.com/images/58adbe48aefb3388f6868854812b18ed.png)

## Metrics
See the documentation [Instruction](config/grafana-template/README.md) for an explanation of the metrics on the dashboard
See the documentation [Instruction](grafana-dashboard/template/README.md) for an explanation of the metrics on the dashboard

## Installation and Usage
The `emqx-exporter` listens on HTTP port 8085 by default. See the `--help` output for more options.
Expand Down Expand Up @@ -80,7 +80,7 @@ scrape_configs:
For EMQX 4.4 open-source, make sure the `emqx_prometheus` plugin has been started on all nodes, check it one by one on the dashboard <http://your_cluster_addr:18083/#/plugins>.

## Grafana Dashboard
Import all [templates](./config/grafana-template) to your Grafana, then browse the dashboard `EMQX` and enjoy yourself!
Import all [templates](./grafana-dashboard/template) to your Grafana, then browse the dashboard `EMQX` and enjoy yourself!

The templates of dashboard ares JSON files, about how to upload a dashboard JSON file, you can check out [here](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/#import-a-dashboard).

Expand Down
2 changes: 1 addition & 1 deletion examples/docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ services:
ports:
- 3000:3000
volumes:
- ../../config/grafana-template/emqx-enterprise-5:/grafana-dashboard-definitions
- ../../grafana-dashboard/template/emqx-enterprise-5:/grafana-dashboard-definitions
- ../provisioning/dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ../provisioning/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
8 changes: 4 additions & 4 deletions examples/docker/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ emqxVersion=$1
case $emqxVersion in
emqx4)
prometheusConfig=prometheus-emqx4.yaml
dashboardDefinitions=$(dirname $(dirname $(pwd)))/config/grafana-template/emqx-4
dashboardDefinitions=$(dirname $(dirname $(pwd)))/grafana-dashboard/template/emqx-4
emqxImage=emqx/emqx:4.4.16
;;
emqx4-ee)
prometheusConfig=prometheus-emqx4.yaml
dashboardDefinitions=$(dirname $(dirname $(pwd)))/config/grafana-template/emqx-enterprise-4
dashboardDefinitions=$(dirname $(dirname $(pwd)))/grafana-dashboard/template/emqx-enterprise-4
emqxImage=emqx/emqx-ee:4.4.16
;;
emqx5)
prometheusConfig=prometheus-emqx5.yaml
dashboardDefinitions=$(dirname $(dirname $(pwd)))/config/grafana-template/emqx-5
dashboardDefinitions=$(dirname $(dirname $(pwd)))/grafana-dashboard/template/emqx-5
emqxImage=emqx/emqx:5.0.1
;;
*)
# deploy emqx5 enterprise by default
prometheusConfig=prometheus-emqx5.yaml
dashboardDefinitions=$(dirname $(dirname $(pwd)))/config/grafana-template/emqx-enterprise-5
dashboardDefinitions=$(dirname $(dirname $(pwd)))/grafana-dashboard/templateate/emqx-enterprise-5
emqxImage=emqx/emqx-enterprise:5.0.1
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion examples/k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,6 @@ EOF
```

## Load Grafana Templates
Import all [templates](../../config/grafana-template) to your Grafana, then browse the dashboard EMQX and enjoy yourself!
Import all [templates](../../grafana-dashboard/template) to your Grafana, then browse the dashboard EMQX and enjoy yourself!

The templates of dashboard ares JSON files, about how to upload a dashboard JSON file, you can check out [here](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/#import-a-dashboard).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e3107be

Please sign in to comment.