Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Monium
  • Getting started
  • Overview
    • Getting started
    • Overview
    • View logs
    • Query language
      • Basic terms
      • Log annotation recommendations
      • Data retention period (TTL)
      • Quotas and limits
    • Log metrics
  • Access management
  • Pricing policy
  • Terraform reference
  • Release notes

In this article:

  • Nesting and namespaces
  • Labels and metadata
  • How to choose between a label and metadata
  1. Logs
  2. Concepts
  3. Log annotation recommendations

Log annotation recommendations

Written by
Yandex Cloud
Updated at February 24, 2026
  • Nesting and namespaces
  • Labels and metadata
    • How to choose between a label and metadata

This section provides recommendations for using fields and attributes to optimally structure logs for enhanced visualization and system performance.

Nesting and namespacesNesting and namespaces

The Monium data model does not support nesting, yet you may need to group related attributes.

To address this, follow these rules:

  • Key must consist of one or more components separated by dots.
  • All components must be lowercase.
  • Final component is the name, and all the preceding ones are namespaces.
  • Namespaces can be nested.
  • Namespace cannot be a key (e.g., if your data contains a my.namespace.something key, do not use my.namespace as a separate key).

Here are some examples of key names:

request.auth.login
request.auth.type
request.method
request.path
stacktrace

For additional guidance on key naming, refer to this OpenTelemetry guide.

Beyond improving attribute grouping in visualizations, this approach enhances autocomplete functionality. To avoid memorizing the entire attribute key, start typing its namespaces, and the system will suggest matching keys. In the above example, typing request. will display all available keys: request.auth.login, request.auth.type, etc.

Labels and metadataLabels and metadata

In the Monium data model, there are two types of attributes: labels and meta.

When choosing between labels and meta, keep in mind that requirements to labels are stricter.

When constraints are violated, labels are automatically moved to metadata. This may cause confusion when writing labels with uncontrolled data, as the same attribute may be duplicated in both labels and metadata, which complicates data search.

Labels are not intended for high-cardinality data (e.g., request IDs, random values, or noise). Including such attributes in labels slows down query performance and may violate Monium limits on the number of unique label values.

How to choose between a label and metadataHow to choose between a label and metadata

You should store an attribute as a label only if all of the following is true:

  • You intend to filter data by the attribute's value (such filtering solves a specific task).
  • Filtering will minimize the number of log lines you need to review.
  • This attribute has a unique value or is closely related to other attributes, i.e., attributes within the same namespace should be stored as labels.
  • Attribute's possible values respect the constraints on label names and values.
  • This attribute has finite unique values.

Tip

If in doubts whether to use labels or metadata, the latter is recommended.

Was the article helpful?

Previous
Basic terms
Next
Data retention period (TTL)
© 2026 Direct Cursus Technology L.L.C.