Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Expanded includes #59

Closed
wants to merge 4 commits into from
Closed

Conversation

moxie0
Copy link

@moxie0 moxie0 commented Oct 25, 2012

I added some more include functionality on top of what @keymon provided (which I found extremely useful).

keymon and others added 4 commits October 25, 2012 12:50
The user can add a new key to the dash.yaml like::

 :graph_properties:
  :environment: dev
  :server: [ a_server_name ]
  :javaid: 1234

that can be accessed from the .graph like:

 server = @properties[:server]
 environment = @properties[:environment]

 field :iowait, :alias => "IO Wait #{server}",
                :data  => "servers.#{server}.cpu*.cpu-{system,wait}.value"
The user can specify a list of dashboards to include:

 :include:
  - "templates/os.basic"
  - "templates/os.nfs"

It will also ignore "categories" that have no dashboard, so you can
create a "templates" category with different templates.
1) Add ability to include YAML files that are treated as dash.yaml mixins.
If you have a long server list with defined colors that you woud like to
appear across several dashboards, for instance, you can define that list
in one place and mix it in to several dashboard YAML files.

2) Rename the existing functionality for including graph templates from
"include" to "include_graphs," to make it distinct from include_properties.
@falkenbt
Copy link
Collaborator

Would love to see this merged, it is really useful.

@ripienaar
Copy link
Owner

Looking quite unlikely I'll get this merged in its current state as code paths have diverged too much and there are big conflicts I do not have time to resolve :(

@keymon
Copy link
Collaborator

keymon commented Jan 14, 2013

Actually in my branch I just merged ripienaar's last commits. All this code is merged there.

@falkenbt
Copy link
Collaborator

The same goes for my branch (test). But I think merging back into the master would be a good thing regarding further development. Otherwise the diverge will get worse.
@ripienaar can you just merge keymons branch?

@ripienaar
Copy link
Owner

I'll take a look - the one in this PR def does not merge cleanly for me on master

@falkenbt
Copy link
Collaborator

Actually...looking at #49 - maybe @keymon could do it himself if he gets the permission. I would be glad to assist or test the result.

@falkenbt
Copy link
Collaborator

falkenbt commented Feb 4, 2013

@moxie0 do you want to merge this?

@falkenbt
Copy link
Collaborator

This should be in master with #66

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

Successfully merging this pull request may close these issues.

4 participants