Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JStickler committed Dec 16, 2024
1 parent 8632205 commit 307ad6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/sources/get-started/labels/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ A label is a key-value pair, for example all of the following are labels:

- deployment_environment = development
- host = server-1
- pod_name = myapp-abcdef
- cloud_region = us-west-1
- service_namespace = grafana-server

Expand Down Expand Up @@ -99,7 +98,7 @@ Because Loki has a default limit of 15 index labels, we recommend storing only s
For Grafana Cloud Logs, see the [current OpenTelemetry guidance](https://grafana.com/docs/grafana-cloud/send-data/otlp/otlp-format-considerations/#logs).
{{< /admonition >}}

The default list of Resource Attributes to store as labels can be configured using `default_resource_attributes_as_index_labels` under the [distributor's otlp_config](https://grafana.com/docs/loki/<LOKI_VERSION>/configure/#distributor). If you are using Grafana Cloud, contact support to configure this setting.
The default list of Resource Attributes to store as labels can be configured using `default_resource_attributes_as_index_labels` under the [distributor's otlp_config](https://grafana.com/docs/loki/<LOKI_VERSION>/configure/#distributor). You can set global limits using [limits_config.otlp_config](/docs/loki/<LOKI_VERSION>/configure/#limits_config). If you are using Grafana Cloud, contact support to configure this setting.

## Labeling is iterative

Expand Down
2 changes: 1 addition & 1 deletion docs/sources/get-started/labels/cardinality.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ To avoid high cardinality in Loki, you should:

- Avoid assigning labels with unbounded values, for example timestamp, trace ID, order ID.
- Prefer static labels that describe the origin or context of the log message, for example, application, namespace, environment.
- Don't assign "dynamic" labels, which are values from the log message itself, unless it is low-cardinality, or a long-lived value
- Don't assign "dynamic" labels, which are values from the log message itself, unless it is low-cardinality, or a long-lived value.
- Use structured metadata to store frequently-searched, high-cardinality metadata fields, such as customer IDs or transaction IDs, without impacting Loki's index.

{{< admonition type="note" >}}
Expand Down

0 comments on commit 307ad6d

Please sign in to comment.