feat(nh): mark native histograms as stable and keep optional#17232
feat(nh): mark native histograms as stable and keep optional#17232
Conversation
6e499a4 to
863ecd0
Compare
ArthurSens
left a comment
There was a problem hiding this comment.
just some small comments, but non blocking
|
As far as I remember, this should be enabled with --scrape.native-histograms or another real cli variable. Every feature behind --enable-feature is considered experimental.
https://prometheus.io/docs/prometheus/latest/feature_flags/ It also means that the documentatin needs to be moved as well. |
|
@roidelapluie Good point, that's true! |
|
We have a new plan. Presumably, some things need adjustment here in this PR. Maybe we should first implement the new scrape config option and then come back to this? |
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
The detailed plan for this is laid out in #16572 . This commit adds a global and local scrape config option `scrape_native_histograms`, which has to be set to true to ingest native histograms. To ease the transition, the feature flag is changed to simply set the default of `scrape_native_histograms` to true. Further implications: - The default scrape protocols now depend on the `scrape_native_histograms` setting. - Everywhere else, histograms are now "on by default". Documentation beyond the one for the feature flag and the scrape config are deliberately left out. See #17232 for that. Signed-off-by: beorn7 <beorn@grafana.com>
837cf8c to
6ee7265
Compare
6ee7265 to
0e0afa1
Compare
|
Note: Updated the release notes line to be shorter and "more correct". |
|
Not sure if needed, but the migration.md file says "If you use the --enable-feature=native-histograms feature flag...". If somebody migrates from v2 to v3 now, we should probably tell them "If you have set Maybe we mention both: "If you have set |
Do you want to keep migration.md as is or adopt my suggestion? (I'm fine if you want to keep it as is, but I would like to make sure you have seen my comment.) |
Not sure. Technically we should mention that from 3.8 the feature flag is deprecated. But do we really have to keep updating this doc? |
Not forever, of course, but this is an easy update, and I assume that there are still a bunch of users who migrate from v2 to v3 these days, probably even when v3.9 is out, and we save them a lot of confusion by adding this. |
I've made an update , but not here, rather at the feature flags section, ptal |
beorn7
left a comment
There was a problem hiding this comment.
Only the location of the gauge vs counter histograms left.
Fixes: #16572 Mark as stable means that breaking changes are only allowed together with major version release of Prometheus. Co-authored-by: Björn Rabenstein <beorn@grafana.com> Signed-off-by: George Krajcsovits <krajorama@users.noreply.github.com> Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Plus some docstrings Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
e361c92 to
18efd9d
Compare
Keep the feature optional but mark as stable, meaning that breaking changes are only allowed together with major version release of Prometheus.
Which issue(s) does the PR fix:
Related to: #16572
Does this PR introduce a user-facing change?