Hi Michael, On Wed, Mar 1, 2017 at 10:18 PM, Michael Martinez <[email protected]> wrote: > We run collectd on all our Amazon instances. The FQDN that an instance > knows itself as, is its internal ip (eg. > ip-172-1-30-197.ec2.internal), and this is what gets included in the > name of the metric sent by collectd via the Graphite plugin. > > We'd like to change this behavior so use the external dns name instead > of the internal hostname. The external hostname can be derived on the > instance itself by running: > > /opt/aws/bin/ec2-metadata -p |awk '{split($2,a,"."); print a[1]} > > Is there a way to configure collectd to use this hostname instead of > the internal one? Or am I pretty much limited to managing the > collectd.conf:Hostname line with something like Salt?
the Hostname can only be changed in collectd.conf, so managing that with Salt seems a good solution. > > -- > --- > Michael Martinez > http://www.michael--martinez.com Kind regards, Ruben _______________________________________________ collectd mailing list [email protected] https://mailman.verplant.org/listinfo/collectd
