<div dir="ltr"><div><div><div><div><div><div>Hey guys,<br><br></div>We had interesting discussion with Brian on <a href="https://github.com/wildfly/wildfly-core/pull/848#issuecomment-119778986">https://github.com/wildfly/wildfly-core/pull/848#issuecomment-119778986</a> <br></div>about how we register runtime/metric attribute on resources.<br><br></div>There are many cases where subsystems only register attributes / resources only when server is booting into normal mode.<br></div>but if it server is booted only to &quot;admin mode&quot; all that runtime/metrics attributes are not registered and as such not seen in the model.<br><br></div>Registering runtime attributes only in normal mode can cause that results of :read-resource-description/read-resource <br>wouldn&#39;t return attributes that are on resources if server is started in admin mode or even CLI standalone.<br>Our metadata already provides information if attributes is runtime/metric/configuration.<br><br></div><div>This can cause problems for tooling that relies on output of those two operations.<br></div><div><br></div><div>Looking at current state of the code, we do use both ways of registering attributes either conditionally or always.<br></div><div>This probably originates from times where there was no good api/way to mark attribute/resource as runtime.<br></div><div><br></div><div>I am personally am in favor of always registering runtime attributes as this makes sure that user isn&#39;t surprised by some extra/missing<br></div><div>attributes based on fact how it is starting the server. <br><br><br></div><div>What do you guys think? Should we always register it or have it conditionally?<br><br>--<br></div><div>tomaz<br></div><div><br></div><br></div>