You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and overwritten when reading from the second file for custom metrics.
The problem seems to be caused by the fact that metrics are read from that same variable additionalMetrics and due to it being type Metrics which itself is a struct that contains a slice of struct Metric, it is all being reused and therefore overwritten when the second file for custom metrics is read.
We believe we have this fixed in 1.5.4 - if you still see the error, please reopen, or open a new issue to let you know. Thanks very much for your input.
If multiple files for custom metrics are specified using environment variable CUSTOM_METRICS, then upon loading metrics in
oracle-db-appdev-monitoring/collector/collector.go
Line 496 in 5940f34
additionalMetrics
is reused fromoracle-db-appdev-monitoring/collector/collector.go
Line 99 in 5940f34
The problem seems to be caused by the fact that metrics are read from that same variable
additionalMetrics
and due to it being typeMetrics
which itself is a struct that contains a slice of structMetric
, it is all being reused and therefore overwritten when the second file for custom metrics is read.Example:
File
docker-compose.yaml
File
custom-metrics.toml
File
custom-metrics-2.toml
Results:

The text was updated successfully, but these errors were encountered: