Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Unboxing #30

Open
amotl opened this issue Oct 28, 2024 · 2 comments
Open

Improve Unboxing #30

amotl opened this issue Oct 28, 2024 · 2 comments

Comments

@amotl
Copy link
Contributor

amotl commented Oct 28, 2024

Receiving this as a first response, as reported by @gecube, is not very welcoming, I guess?

# grafana-import 
Traceback (most recent call last):
  File "/home/bin/grafana-import", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/lib/python3.12/site-packages/grafana_import/cli.py", line 229, in main
    params = grafana_settings(url=args.grafana_url, config=config, label=args.grafana_label)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lib/python3.12/site-packages/grafana_import/util.py", line 58, in grafana_settings
    params = grafana_settings_from_config_section(config=config, label=label)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lib/python3.12/site-packages/grafana_import/util.py", line 80, in grafana_settings_from_config_section
    raise ValueError(f"Invalid Grafana configuration label: {label}")
ValueError: Invalid Grafana configuration label: default

Originally posted by @amotl in #17 (comment)

@jozefrewe
Copy link

And is there a solution to this error?

@amotl
Copy link
Contributor Author

amotl commented Jan 13, 2025

Hi. I think you need to invoke grafana-import using relevant options. Without any, it does nothing, but croaks. The latter is only a cosmetic error, but it could still be mitigated to improve guidance for newcomers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants