You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@c8faefc852da:/apache-pulsar-grafana-dashboard# ./scripts/generate_dashboards.sh http://172.17.0.2:9090 standaloneGenerating Datasources ...
Traceback (most recent call last):
File "/usr/local/bin/j2", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/j2cli/cli.py", line 206, in main
sys.argv[1:]
File "/usr/local/lib/python3.6/dist-packages/j2cli/cli.py", line 186, in render_command
result = renderer.render(args.template, context)
File "/usr/local/lib/python3.6/dist-packages/j2cli/cli.py", line 87, in render
.render(context) \
File "/usr/local/lib/python3.6/dist-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.6/dist-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/usr/local/lib/python3.6/dist-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/apache-pulsar-grafana-dashboard/target/datasources.yml", line 65, in top-level template code
- name: "{{ GF_LOKI_DATASOURCE_NAME }}"
jinja2.exceptions.UndefinedError: 'GF_LOKI_DATASOURCE_NAME' is undefined
The text was updated successfully, but these errors were encountered:
Main intent was to extend the JSON dashboards to support more dynamic "job" names and to be able to switch out "instance" dashboard legends with "pod" keys.
After this update most of the dashboards under dashboards/ are Jinja2 templates and the generate_dashboard.sh script
now supports checking for and prompting if missing input/env vars which also resolves issue #45
Visual verification of post rendered templates was done.
Error log:
The text was updated successfully, but these errors were encountered: