Replies: 2 comments
-
| 
         Not sure if  Something like: message MetricSampleSource {
  repeated MetricSource predefined;
  string custom;
}But not sure if it doesn't get too complicated.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
        
 Note that for wind this is the standard meteorological terminology.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a proposal for a few, sometimes related, sensor metrics improvements:
_SENSORprefix for environmental conditions metricsWIND_SPEED->VELOCITYWIND_DIRECTION->ANGLEAIR_PRESSURE->PRESSUREWe were talking about having a
sourcefor sensor metric samples, and unifyingMetric/SensorMetric,MetricSample/SensorMetricSample. Once we have this, it seems a bit redundant to have metrics where the source is part of the metric name, for example:Maybe it makes more sense to remove all
METRIC_*_TEMPERATUREmetrics, and just useMETRIC_SENSOR_TEMPERATUREand set the source to the*where it makes sense. For example, if I'm readingMETRIC_SENSOR_TEMPERATUREfor a Battery component, it is pretty obvious that if there is no source, the source is the battery. But for inverters we can have these sources:CABINET,HEATSINK,TRANSFORMER.Even more, maybe the
_SENSORprefix is also redundant now, as the temperature doesn't really come from a "sensor component" (for you @tiyash-basu-frequenz 😘 😆 ):Also,
SensorMetricuseVELOCITYandANGLEinstead ofWIND_SPEEDandWIND_DIRECTION. I find the former more general, and the later to also include thesourcein a way (for a hydro plant maybe there is a water velocity sensor?), so maybeWINDcan be the source?On the same line,
SensorMetricuses justPRESSUREwhileMetricusesAIR_PRESSURE. I also wonder we might need to measure other pressures (water pressure for example). So thenAIRwould be the source, and we have some overlap here too, asAIRmoving is the source forWIND, so we can just haveVELOCITYwithsource=AIRforWIND_SPEED, for example.Putting it all together, I propose to replace the above snippet with:
And leave all the specifics to
sources. We might want to then standardize sources, maybe havingsourceas something like:So we can have some standard, well-known sources, otherwise it could get a bit messy if different people start using different names fro well-known sources.
Beta Was this translation helpful? Give feedback.
All reactions