O'Reilly logo
  • AKIHITO INOH thinks this is interesting:

It is not possible to have varying label names for a metric, and client libraries will prevent it. When working with metrics it is important that you know what labels you have in play, so you must know your label names in advance when doing direct instrumentation. If you don’t know your labels, you probably want a logs-based monitoring tool for that specific use case instead.

From

Cover of Prometheus: Up & Running

Note

予め計測できない類のメトリクスがあると考えられる場合は、メトリクスじゃなくてロギングのシステムを使うべき。