Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Exception when updating a grafana dashboard using Zmon Update #56

Open
mohabusama opened this issue Aug 1, 2017 · 0 comments
Open

Exception when updating a grafana dashboard using Zmon Update #56

mohabusama opened this issue Aug 1, 2017 · 0 comments
Labels
bug user-reported issues that take more than one hour to resolve Revisit relevant issue. Needs to be tackled as part of current stabilising work

Comments

@mohabusama
Copy link
Contributor

When using Zmon Update, I get an exception at the end of the update command, However the dashboard seems to be updated anyway.

$> zmon graf update <yaml file>                                                                                                  

Updating dashboard XXXXXX ...
 EXCEPTION OCCURRED: 'id'
Traceback (most recent call last):
  File "/usr/local/bin/zmon", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/site-packages/zmon_cli/main.py", line 9, in main
    cli()
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 27, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/zmon_cli/cmds/grafana.py", line 47, in grafana_update
    ok(client.grafana_dashboard_url(dashboard))
  File "/usr/local/lib/python3.6/site-packages/zmon_cli/client.py", line 252, in grafana_dashboard_url
    return self.endpoint(GRAFANA_DASHBOARD_URL, dashboard['id'], base_url=self.base_url)
KeyError: 'id'

reported by @kabdelrahman on zalando/zmon#35

@mohabusama mohabusama added the bug user-reported issues that take more than one hour to resolve label Aug 1, 2017
@beverage beverage added the Revisit relevant issue. Needs to be tackled as part of current stabilising work label Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug user-reported issues that take more than one hour to resolve Revisit relevant issue. Needs to be tackled as part of current stabilising work
Projects
None yet
Development

No branches or pull requests

2 participants