Re: [Ganglia-general] dynamic gmond parameters

2015-10-02 Thread Adrian Sevcenco
On 10/02/2015 12:54 PM, Branko Toic wrote:
> I'm also interested in this.
> I was planing on ruining multiple mute=yes gmond instances on single
> host via docker for aggregation purposes.
> Having ability to read env variables would ease up deployment. For now
> I was thinking about placeholders in conf files and some sed commands
> before startup
The configuration file is not read by bash but it has a very powerful
feature : include
you can have a gmond.conf constructed with components like
include ("/path/setting1") ... include ("/path/setting2")
and each component you could customize with a script.
I think that it would be easier and flexible tot make a sed on a
component && gmond restart than to use something like env vars.
The plus side would be that each component could be remote customized
and deployed afterwards on the desired node.

HTH,
Adrian


> 
> On Fri, Oct 2, 2015 at 10:26 AM, Cristovao Cordeiro
>  wrote:
>> Hi,
>>
>> is it possible to have gmond parameters that can get environment variables
>> or simply return the value of a bash expression? Something like:
>>  ...
>>  override_hostname = "%{HOSTNAME}_myname"
>>  ...
>> (just an example)
>>
>> Thanks
>>
>> Cumprimentos / Best regards,
>> Cristóvão José Domingues Cordeiro
>>
>>
>> --
>>
>> ___
>> Ganglia-general mailing list
>> Ganglia-general@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>>
> 
> --
> ___
> Ganglia-general mailing list
> Ganglia-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
> 


-- 
--
Adrian Sevcenco, Ph.D.   |
Institute of Space Science - ISS, Romania|
adrian.sevcenco at {cern.ch,spacescience.ro} |
--



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general


[Ganglia-general] dynamic gmond parameters

2015-10-02 Thread Cristovao Cordeiro
Hi,

is it possible to have gmond parameters that can get environment variables or 
simply return the value of a bash expression? Something like:
 ...
 override_hostname = "%{HOSTNAME}_myname"
 ...
(just an example)

Thanks

Cumprimentos / Best regards,
Cristóvão José Domingues Cordeiro

--
___
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general


Re: [Ganglia-general] dynamic gmond parameters

2015-10-02 Thread Branko Toic
I'm also interested in this.
I was planing on ruining multiple mute=yes gmond instances on single
host via docker for aggregation purposes.
Having ability to read env variables would ease up deployment. For now
I was thinking about placeholders in conf files and some sed commands
before startup

On Fri, Oct 2, 2015 at 10:26 AM, Cristovao Cordeiro
 wrote:
> Hi,
>
> is it possible to have gmond parameters that can get environment variables
> or simply return the value of a bash expression? Something like:
>  ...
>  override_hostname = "%{HOSTNAME}_myname"
>  ...
> (just an example)
>
> Thanks
>
> Cumprimentos / Best regards,
> Cristóvão José Domingues Cordeiro
>
>
> --
>
> ___
> Ganglia-general mailing list
> Ganglia-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>

--
___
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general