You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Sumit Mohanty (JIRA)" <ji...@apache.org> on 2016/11/14 19:40:00 UTC

[jira] [Comment Edited] (AMBARI-18846) Custom services should be able to easily specify their own dashboards

    [ https://issues.apache.org/jira/browse/AMBARI-18846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15664637#comment-15664637 ] 

Sumit Mohanty edited comment on AMBARI-18846 at 11/14/16 7:39 PM:
------------------------------------------------------------------

Compilation failure. In resourceFilesKeeper.py line 160. Build failing with:
{code}
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (generate-hash-files) @ ambari-agent ---
Traceback (most recent call last):
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", line 291, in <module>
    main(sys.argv)
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", line 287, in main
    resource_files_keeper.perform_housekeeping()
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", line 72, in perform_housekeeping
    self.update_directory_archives()
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", line 117, in update_directory_archives
    self._update_resources_subdir_archive(self.DASHBOARDS_DIR)
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", line 89, in _update_resources_subdir_archive
    self.update_directory_archive(archive_root)
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", line 160, in update_directory_archive
    if (skip_empty_directory and not os.listdir(directory)):
OSError: [Errno 2] No such file or directory: 'ambari-agent/target/cache/dashboards'
{code}



was (Author: smnaha):
Compilation failure. In resourceFilesKeeper.py line 160. Build failing with:

[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (generate-hash-files) @ ambari-agent ---
Traceback (most recent call last):
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", line 291, in <module>
    main(sys.argv)
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", line 287, in main
    resource_files_keeper.perform_housekeeping()
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", line 72, in perform_housekeeping
    self.update_directory_archives()
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", line 117, in update_directory_archives
    self._update_resources_subdir_archive(self.DASHBOARDS_DIR)
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", line 89, in _update_resources_subdir_archive
    self.update_directory_archive(archive_root)
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", line 160, in update_directory_archive
    if (skip_empty_directory and not os.listdir(directory)):
OSError: [Errno 2] No such file or directory: 'ambari-agent/target/cache/dashboards'

> Custom services should be able to easily specify their own dashboards
> ---------------------------------------------------------------------
>
>                 Key: AMBARI-18846
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18846
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-admin, ambari-metrics, ambari-server
>    Affects Versions: trunk, 2.4.0, 2.5.0
>            Reporter: Tim Thorpe
>            Assignee: Tim Thorpe
>             Fix For: trunk, 2.5.0
>
>         Attachments: AMBARI-18846.patch
>
>
>  Currently all dashboards are added directly in under the AMBARI_METRICS package directory (package/files/grafana-dashboards).
> In order for custom services to add dashboards, they need to add the files directly under that folder.  Each time the Ambari server is upgraded, those files will be lost as the AMBARI_METRICS service definition will be replaced.
> This JIRA proposes adding a new directory under the ambari-server/resources.  This will contain both the dashboards and metrics for custom services.  
> The dashboards here will not be organized by stack.  Each service will add a directory containing their dashboards and will add a metrics file.
> resources/dashboards/grafana-dashboards/MY_SERVICE/<dashboards>
> resources/dashboards/service-metrics/MY_SERVICE.txt
> The resources/dashboards directory will need to get sync'd to the agents.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)