streamnative / apache-pulsar-grafana-dashboard

Apache Pulsar Grafana Dashboard
Apache License 2.0
91 stars 93 forks source link

Missing dependency j2 #64

Closed xiaozongyang closed 3 years ago

xiaozongyang commented 3 years ago

When I run gemerate_dashboards.sh I got this error message.

➜  apache-pulsar-grafana-dashboard git:(master) ./scripts/generate_dashboards.sh prometheus-test.example.com pulsar-cluster-test
Setting PULSAR_PROMETHEUS_URL from script input.
PULSAR_PROMETHEUS_URL set to: prometheus-test.zhenguanyu.com
Setting PULSAR_CLUSTER from script input.
PULSAR_CLUSTER set to: pulsar-cluster-test
Using existing PULSAR_CUSTOM_PROMETHEUS environment variable.
PULSAR_CUSTOM_PROMETHEUS set to:
Using existing GF_LOKI_URL environment variable.
GF_LOKI_URL set to:
Using existing GF_LOKI_DATASOURCE_NAME environment variable.
GF_LOKI_DATASOURCE_NAME set to:
Generating Datasources ...
./scripts/generate_dashboards.sh: line 105: j2: command not found
coute commented 3 years ago

j2 is missing pip install j2cli

xiaozongyang commented 3 years ago

Will it be better to add a requirements.txt in this project or a bash script to run this command?