New question #93708 on Graphite:
https://answers.launchpad.net/graphite/+question/93708

Hi,

is there a way to load (or execute) a script (i.e. a series of commands stored 
in a file) into graphite?
If not, then this would be a nice basic feature to add...

here is the usual situation where it comes up as an issue:

Say, I have written a script and saved it in a text file. Here is an example 
script that displays
the scaled version of SP500 index:

set spprice charts ES.ESZ9
set sp scale($spprice,0.5)
create s
draw $sp in s from -8hours every 3sec

This script uses the December 2009 future contract values. The problem is that 
these futures expire every three months, and then you have to update your 
displays. This work would amount to editing one name in line 1 of the script 
when the contract expires if I could just reload the script from file. Without 
this capability, however, I have to manually copy and paste all the lines of 
the scripts into the graphite interpreter and then save it as a view. This gets 
very annoying as you have many displays much longer and more complicated than 
the above one...

thanks

Roland

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.

_______________________________________________
Mailing list: https://launchpad.net/~graphite-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~graphite-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to