[ https://issues.apache.org/jira/browse/BROOKLYN-515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Valentin Aitken resolved BROOKLYN-515. -------------------------------------- Resolution: Fixed Fix Version/s: 0.12.0 > WindowsPerformanceCounterSensors does not show values on some Windows > deployments > ---------------------------------------------------------------------------------- > > Key: BROOKLYN-515 > URL: https://issues.apache.org/jira/browse/BROOKLYN-515 > Project: Brooklyn > Issue Type: Bug > Reporter: Valentin Aitken > Priority: Minor > Fix For: 0.12.0 > > > Deploying against GCE windows > {noformat} > name: Windows performance sensors > location: > jclouds:google-compute-engine: > identity: xxx...@project.gserviceaccount.com > credential: | > -----BEGIN PRIVATE KEY----- > GCE key > imageNameRegex: windows-server-2012.* > region: europe-west1-b > osFamily: windows > services: > - type: org.apache.brooklyn.entity.software.base.VanillaWindowsProcess > brooklyn.initializers: > - type: >- > > org.apache.brooklyn.core.sensor.windows.WindowsPerformanceCounterSensors > brooklyn.config: > performance.counters: > - name: percent.processor.time > description: '% Processor Time' > counter: \Processor Information(_total)\% Processor Time > - > name: bytes.available > description: Bytes Available > counter: "\\Memory\\Available Bytes" > brooklyn.config: > checkRunning.command: echo running > launch.command: echo launch > {noformat} > Does not fill sensors. > *Analysis* > This is happening because std err is appearing in winrm response of the > command. Stderr looks like this. > {noformat} > #< CLIXML > <Objs Version="1.1.0.1" > xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" > RefId="0"><TN > RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 > N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first > use.</AV><AI>0</AI><Nil > /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> > </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 > N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first > use.</AV><AI>0</AI><Nil > /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> > </SD></PR></MS></Obj></Objs> > {noformat} > I think it is not harmful and can be turned of by adding > {{$ProgressPreference = "SilentlyContinue";}} in front of the poll command > which is built in {{preStart}} of {{WindowsPerformanceCounterFeed}}. > Approach I described makes {{WindowsPerformanceCounterFeed}} happy and it > displays results. Will submit a PR. -- This message was sent by Atlassian JIRA (v6.3.15#6346)