File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ func (o *OpenStack) Init() error {
143143 TenantName : o .Project ,
144144 Username : o .Username ,
145145 Password : o .Password ,
146- AllowReauth : true ,
146+ AllowReauth : true ,
147147 }
148148 provider , err := openstack .NewClient (authOption .IdentityEndpoint )
149149 if err != nil {
@@ -775,6 +775,7 @@ func (o *OpenStack) gatherServers(acc telegraf.Accumulator) error {
775775 acc .AddError (fmt .Errorf ("unable to get diagnostics for server(%v) %v" , server .ID , err ))
776776 continue
777777 }
778+ diagnostic ["server_name" ] = server .Name
778779 o .diag [server .ID ] = diagnostic
779780 }
780781 }
@@ -870,6 +871,7 @@ func (o *OpenStack) accumulateServerDiagnostics(acc telegraf.Accumulator) {
870871 }
871872 tags := map [string ]string {
872873 "server_id" : serverID ,
874+ "server_name" : s ["server_name" ].(string ),
873875 }
874876 fields := map [string ]interface {}{}
875877 portName := make (map [string ]bool )
You can’t perform that action at this time.
0 commit comments