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:
_SENSOR
prefix for environmental conditions metricsWIND_SPEED
->VELOCITY
WIND_DIRECTION
->ANGLE
AIR_PRESSURE
->PRESSURE
We were talking about having a
source
for 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_*_TEMPERATURE
metrics, and just useMETRIC_SENSOR_TEMPERATURE
and set the source to the*
where it makes sense. For example, if I'm readingMETRIC_SENSOR_TEMPERATURE
for 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
_SENSOR
prefix is also redundant now, as the temperature doesn't really come from a "sensor component" (for you @tiyash-basu-frequenz 😘 😆 ):Also,
SensorMetric
useVELOCITY
andANGLE
instead ofWIND_SPEED
andWIND_DIRECTION
. I find the former more general, and the later to also include thesource
in a way (for a hydro plant maybe there is a water velocity sensor?), so maybeWIND
can be the source?On the same line,
SensorMetric
uses justPRESSURE
whileMetric
usesAIR_PRESSURE
. I also wonder we might need to measure other pressures (water pressure for example). So thenAIR
would be the source, and we have some overlap here too, asAIR
moving is the source forWIND
, so we can just haveVELOCITY
withsource=AIR
forWIND_SPEED
, for example.Putting it all together, I propose to replace the above snippet with:
And leave all the specifics to
source
s. We might want to then standardize sources, maybe havingsource
as 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