@@ -125,10 +125,12 @@ Changing region will destroy the existing stack and create a new one in the desi
125125 Computed : true ,
126126 Description : "Status of the stack." ,
127127 },
128+
129+ // Hosted Metrics
128130 "prometheus_user_id" : {
129131 Type : schema .TypeInt ,
130132 Computed : true ,
131- Description : "Promehteus user ID. Used for e.g. remote_write." ,
133+ Description : "Prometheus user ID. Used for e.g. remote_write." ,
132134 },
133135 "prometheus_url" : {
134136 Type : schema .TypeString ,
@@ -155,6 +157,8 @@ Changing region will destroy the existing stack and create a new one in the desi
155157 Computed : true ,
156158 Description : "Prometheus status for this instance." ,
157159 },
160+
161+ // Alerting
158162 "alertmanager_user_id" : {
159163 Type : schema .TypeInt ,
160164 Computed : true ,
@@ -175,6 +179,8 @@ Changing region will destroy the existing stack and create a new one in the desi
175179 Computed : true ,
176180 Description : "Status of the Alertmanager instance configured for this stack." ,
177181 },
182+
183+ // Hosted Logs
178184 "logs_user_id" : {
179185 Type : schema .TypeInt ,
180186 Computed : true ,
@@ -191,6 +197,42 @@ Changing region will destroy the existing stack and create a new one in the desi
191197 Type : schema .TypeString ,
192198 Computed : true ,
193199 },
200+
201+ // Traces
202+ "traces_user_id" : {
203+ Type : schema .TypeInt ,
204+ Computed : true ,
205+ },
206+ "traces_name" : {
207+ Type : schema .TypeString ,
208+ Computed : true ,
209+ },
210+ "traces_url" : {
211+ Type : schema .TypeString ,
212+ Computed : true ,
213+ },
214+ "traces_status" : {
215+ Type : schema .TypeString ,
216+ Computed : true ,
217+ },
218+
219+ // Graphite
220+ "graphite_user_id" : {
221+ Type : schema .TypeInt ,
222+ Computed : true ,
223+ },
224+ "graphite_name" : {
225+ Type : schema .TypeString ,
226+ Computed : true ,
227+ },
228+ "graphite_url" : {
229+ Type : schema .TypeString ,
230+ Computed : true ,
231+ },
232+ "graphite_status" : {
233+ Type : schema .TypeString ,
234+ Computed : true ,
235+ },
194236 },
195237 }
196238}
@@ -316,10 +358,10 @@ func FlattenStack(d *schema.ResourceData, stack gapi.Stack) error {
316358 d .Set ("prometheus_url" , stack .HmInstancePromURL )
317359 d .Set ("prometheus_name" , stack .HmInstancePromName )
318360 reURL , err := appendPath (stack .HmInstancePromURL , "/api/prom" )
319- d .Set ("prometheus_remote_endpoint" , reURL )
320361 if err != nil {
321362 return err
322363 }
364+ d .Set ("prometheus_remote_endpoint" , reURL )
323365 rweURL , err := appendPath (stack .HmInstancePromURL , "/api/prom/push" )
324366 if err != nil {
325367 return err
@@ -337,6 +379,16 @@ func FlattenStack(d *schema.ResourceData, stack gapi.Stack) error {
337379 d .Set ("alertmanager_url" , stack .AmInstanceURL )
338380 d .Set ("alertmanager_status" , stack .AmInstanceStatus )
339381
382+ d .Set ("traces_user_id" , stack .HtInstanceID )
383+ d .Set ("traces_name" , stack .HtInstanceName )
384+ d .Set ("traces_url" , stack .HtInstanceURL )
385+ d .Set ("traces_status" , stack .HtInstanceStatus )
386+
387+ d .Set ("graphite_user_id" , stack .HmInstanceGraphiteID )
388+ d .Set ("graphite_name" , stack .HmInstanceGraphiteName )
389+ d .Set ("graphite_url" , stack .HmInstanceGraphiteURL )
390+ d .Set ("graphite_status" , stack .HmInstanceGraphiteStatus )
391+
340392 return nil
341393}
342394
0 commit comments