diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ca38be77..9e377cc17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,18 +1,6 @@ -## 2.32.0-rc.0 / 2021-12-01 +## 2.32.0 / 2021-12-09 -This list of changes is relative to [v2.32.0-beta.0](https://github.com/prometheus/prometheus/releases/tag/v2.32.0-beta.0), which was a special 2.32 beta release to pre-publish the Prometheus Agent features. - -* [FEATURE] TSDB: Add support for forwarding exemplars in Agent mode. #9664 -* [FEATURE] UI: Adapt web UI for Prometheus Agent mode. #9851 -* [ENHANCEMENT] Linode SD: Tune API request page sizes. #9779 -* [BUGFIX] TSDB: Fix panic when checkpoint directory is empty. #9687 -* [BUGFIX] TSDB: Fix panic, out of order chunks, and race warning during WAL replay. #9856 -* [BUGFIX] UI: Correctly render links for targets with IPv6 addresses that contain a Zone ID. #9853 -* [BUGFIX] Promtool: Fix checking of `authorization.credentials_file` and `bearer_token_file` fields. #9883 - -## 2.32.0-beta.0 / 2021-11-16 - -This beta release introduces the Prometheus Agent, a new mode of operation for +This release introduces the Prometheus Agent, a new mode of operation for Prometheus optimized for remote-write only scenarios. In this mode, Prometheus does not generate blocks on the local filesystem and is not queryable locally. Enable with `--enable-feature=agent`. @@ -20,7 +8,7 @@ Enable with `--enable-feature=agent`. Learn more about the Prometheus Agent in our [blog post](https://prometheus.io/blog/2021/11/16/agent/). * [CHANGE] remote-write: Change default max retry time from 100ms to 5 seconds. #9634 -* [FEATURE] Agent: New mode of operation optimized for remote-write only scenarios, without local storage. Enable with `--enable-feature=agent`. #8785 +* [FEATURE] Agent: New mode of operation optimized for remote-write only scenarios, without local storage. Enable with `--enable-feature=agent`. #8785 #9851 #9664 #9939 #9941 #9943 * [FEATURE] Promtool: Add `promtool check service-discovery` command. #8970 * [FEATURE] UI: Add search in metrics dropdown. #9629 * [FEATURE] Templates: Add parseDuration to template functions. #8817 @@ -32,8 +20,15 @@ Learn more about the Prometheus Agent in our [blog post](https://prometheus.io/b * [ENHANCEMENT] TSDB: Optimize query by skipping unneeded sorting in TSDB. #9673 * [ENHANCEMENT] Templates: Support int and uint as datatypes for template formatting. #9680 * [ENHANCEMENT] UI: Prefer `rate` over `rad`, `delta` over `deg`, and `count` over `cos` in autocomplete. #9688 +* [ENHANCEMENT] Linode SD: Tune API request page sizes. #9779 * [BUGFIX] TSDB: Add more size checks when writing individual sections in the index. #9710 * [BUGFIX] PromQL: Make `deriv()` return zero values for constant series. #9728 +* [BUGFIX] TSDB: Fix panic when checkpoint directory is empty. #9687 +* [BUGFIX] TSDB: Fix panic, out of order chunks, and race warning during WAL replay. #9856 +* [BUGFIX] UI: Correctly render links for targets with IPv6 addresses that contain a Zone ID. #9853 +* [BUGFIX] Promtool: Fix checking of `authorization.credentials_file` and `bearer_token_file` fields. #9883 +* [BUGFIX] Uyuni SD: Fix null pointer exception during initialization. #9924 #9950 +* [BUGFIX] TSDB: Fix queries after a failed snapshot replay. #9980 ## 2.31.1 / 2021-11-05 diff --git a/VERSION b/VERSION index 0a68d0694..7cca401c7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.32.0-rc.0 +2.32.0 diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go index a1636fc9c..14c738d67 100644 --- a/cmd/prometheus/main.go +++ b/cmd/prometheus/main.go @@ -381,7 +381,7 @@ func main() { serverOnlyFlag(a, "query.max-samples", "Maximum number of samples a single query can load into memory. Note that queries will fail if they try to load more samples than this into memory, so this also limits the number of samples a query can return."). Default("50000000").IntVar(&cfg.queryMaxSamples) - a.Flag("enable-feature", "Comma separated feature names to enable. Valid options: exemplar-storage, expand-external-labels, memory-snapshot-on-shutdown, promql-at-modifier, promql-negative-offset, remote-write-receiver, extra-scrape-metrics, new-service-discovery-manager. See https://prometheus.io/docs/prometheus/latest/feature_flags/ for more details."). + a.Flag("enable-feature", "Comma separated feature names to enable. Valid options: agent, exemplar-storage, expand-external-labels, memory-snapshot-on-shutdown, promql-at-modifier, promql-negative-offset, remote-write-receiver, extra-scrape-metrics, new-service-discovery-manager. See https://prometheus.io/docs/prometheus/latest/feature_flags/ for more details."). Default("").StringsVar(&cfg.featureList) promlogflag.AddFlags(a, &cfg.promlogConfig) diff --git a/web/ui/react-app/src/App.tsx b/web/ui/react-app/src/App.tsx index 8c96a3f73..7ba77d8f0 100755 --- a/web/ui/react-app/src/App.tsx +++ b/web/ui/react-app/src/App.tsx @@ -103,7 +103,7 @@ const App: FC = ({ consolesLink, agentMode }) => { - + diff --git a/web/ui/react-app/src/pages/agent/Agent.tsx b/web/ui/react-app/src/pages/agent/Agent.tsx index 2590a0a35..140cfe43a 100644 --- a/web/ui/react-app/src/pages/agent/Agent.tsx +++ b/web/ui/react-app/src/pages/agent/Agent.tsx @@ -6,7 +6,7 @@ const Agent: FC = () => {

Prometheus Agent

This Prometheus instance is running in agent mode. In this mode, Prometheus is only used to scrape - discovered targets and forward them to remote write endpoints. + discovered targets and forward the scraped metrics to remote write endpoints.

Some features are not available in this mode, such as querying and alerting.

diff --git a/web/ui/react-app/src/pages/status/Status.tsx b/web/ui/react-app/src/pages/status/Status.tsx index 20d2e9e99..0d37db961 100644 --- a/web/ui/react-app/src/pages/status/Status.tsx +++ b/web/ui/react-app/src/pages/status/Status.tsx @@ -83,28 +83,35 @@ const StatusWithStatusIndicator = withStatusIndicator(StatusContent); StatusContent.displayName = 'Status'; -const Status: FC = () => { +const StatusResult: FC<{ fetchPath: string; title: string }> = ({ fetchPath, title }) => { + const { response, isLoading, error } = useFetch(fetchPath); + return ( + + ); +}; + +const Status: FC<{ agentMode: boolean }> = ({ agentMode }) => { const pathPrefix = usePathPrefix(); const path = `${pathPrefix}/${API_PATH}`; return ( <> {[ - { fetchResult: useFetch>(`${path}/status/runtimeinfo`), title: 'Runtime Information' }, - { fetchResult: useFetch>(`${path}/status/buildinfo`), title: 'Build Information' }, - { fetchResult: useFetch>(`${path}/alertmanagers`), title: 'Alertmanagers' }, - ].map(({ fetchResult, title }) => { - const { response, isLoading, error } = fetchResult; - return ( - - ); + { fetchPath: `${path}/status/runtimeinfo`, title: 'Runtime Information' }, + { fetchPath: `${path}/status/buildinfo`, title: 'Build Information' }, + { fetchPath: `${path}/alertmanagers`, title: 'Alertmanagers' }, + ].map(({ fetchPath, title }) => { + if (agentMode && title === 'Alertmanagers') { + return null; + } + return ; })} );