Skip to content

Conversation

marciw
Copy link
Contributor

@marciw marciw commented Sep 30, 2025

Part of https://github.com/elastic/docs-team/issues/31?issue=elastic%7Cdocs-team%7C41

Status

🟒 Ready for PM/engineer review
🚧 Not ready for tech writer review

❗ Note for reviewers: We're going for "MVP" docs for now and tracking additional improvements in #3179

Changes

  • Revised overview: simplified, clarified
  • Revised setup: removed component templates, simplified
  • New advanced section (reindex, advanced concepts)

TODO:

  • Reconcile with recent changes to general data stream docs
  • Check docs patterns/style/etc.

@kkrik-es kkrik-es requested a review from felixbarny October 1, 2025 06:54
@marciw marciw requested review from kkrik-es and gmarouli October 5, 2025 22:44
Copy link
Contributor

@kkrik-es kkrik-es left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing, thanks!

- To define a metric, use the `time_series_metric` mapping parameter. For more details, refer to [Metrics](/manage-data/data-store/data-streams/time-series-data-stream-tsds.md#time-series-metric).
- (Optional) Define a `date` or `date_nanos` mapping for the `@timestamp` field. If you don't specify a mapping, {{es}} maps `@timestamp` as a `date` field with default options.
* (Optional) Other index settings, such as [`index.number_of_replicas`](elasticsearch://reference/elasticsearch/index-settings/index-modules.md#dynamic-index-number-of-replicas), for the data stream's backing indices.
- A priority higher than `200`, to avoid [collisions](/manage-data/data-store/templates.md#avoid-index-pattern-collisions) with built-in templates.
Copy link
Contributor

@gmarouli gmarouli Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to add here a lifecycle management section, at least for stateful, in serverless, this is enforced. I would recommend adding the following in the template:

"lifecycle": {
  "enabled": true
}

The main reason we need this is rollover, if a user doesn't add this they are going to end up with a gigantic index. Everything else is optional, we can leave it under the advanced set-up.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I second this - And I think that on the advanced setup we should at least explain why lifecycle management is useful for setting up rollover (quick one sentence to give them a reason on why the provided links are useful if they do not know about them)

---

# Reindex a TSDS [tsds-reindex]
# Reindex a time series data stream [tsds-reindex]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kkrik-es if I understand correctly, this reindexing manual is suggesting to reindex the data of one data stream into a single backing index of another data stream. Right?

If this is true, then I think we need to add a disclaimer before a user gets unpleasantly surprised.

We could also mention the reindex data stream API that was added for upgrades, I will check if it works.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah not ideal.. It's orthogonal to this PR tho, let's file an issue to provide a better path (I thought we had one..)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should at least mention that the result will be a single index, like a note box or something, @marciw what do you think.

The rest is indeed orthogonal to this PR.

"routing_path": [ "metricset" ]
}
"index.mode": "time_series",
"index.routing_path": ["dimension_field"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This setting gets auto-populated, let's remove it.

Copy link
Contributor

@yannis-roussos yannis-roussos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Marci, looks great! I have added a few minor comments for your consideration.

Small additional thing I noticed: The link in the "Create a data stream and add sample data" section of the quickstart is now broken as we have moved the accepted time range section to the Time-bound indices page

- To define a metric, use the `time_series_metric` mapping parameter. For more details, refer to [Metrics](/manage-data/data-store/data-streams/time-series-data-stream-tsds.md#time-series-metric).
- (Optional) Define a `date` or `date_nanos` mapping for the `@timestamp` field. If you don't specify a mapping, {{es}} maps `@timestamp` as a `date` field with default options.
* (Optional) Other index settings, such as [`index.number_of_replicas`](elasticsearch://reference/elasticsearch/index-settings/index-modules.md#dynamic-index-number-of-replicas), for the data stream's backing indices.
- A priority higher than `200`, to avoid [collisions](/manage-data/data-store/templates.md#avoid-index-pattern-collisions) with built-in templates.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I second this - And I think that on the advanced setup we should at least explain why lifecycle management is useful for setting up rollover (quick one sentence to give them a reason on why the provided links are useful if they do not know about them)

marciw and others added 2 commits October 7, 2025 16:52
Co-authored-by: Yannis Roussos <[email protected]>
Co-authored-by: Yannis Roussos <[email protected]>
Adds docs for the new OTLP endpoint added via
elastic/elasticsearch#133057

Closes #3363

---------

Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
Co-authored-by: Kostas Krikellas <[email protected]>
Co-authored-by: Felix Barnsteiner <[email protected]>
Co-authored-by: Felix Barnsteiner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants