Compare commits

...

22 commits

Author SHA1 Message Date
Johannes Zellner dddcc846e1 Bump version 2024-05-10 14:49:16 +02:00
Johannes Zellner dd9acc3618 Fixup tests 2024-05-10 14:48:19 +02:00
Johannes Zellner b39c9a97fc Update test deps 2024-05-09 13:07:14 +02:00
Johannes Zellner 52502c017c Update to 2.52.0 2024-05-09 13:06:45 +02:00
Girish Ramakrishnan 79205256a6 Version 1.30.2 2024-04-16 11:48:07 +02:00
Girish Ramakrishnan 01ba918473 Fix login 2024-04-16 11:47:28 +02:00
Girish Ramakrishnan de1564514e Update test packages 2024-04-16 11:10:05 +02:00
Girish Ramakrishnan 425ca9db33 Update Prometheus to 2.51.2 2024-04-11 09:18:42 +02:00
Girish Ramakrishnan cfbc28beba Version 1.30.1 2024-03-29 09:35:46 +01:00
Girish Ramakrishnan 0a045163b9 Update test packages 2024-03-29 09:32:38 +01:00
Girish Ramakrishnan 40ae4015a8 Update Prometheus to 2.51.1 2024-03-29 09:25:41 +01:00
Johannes Zellner be9a1d1293 Bump version 2024-03-19 16:09:46 +01:00
Johannes Zellner 02f49d816b Update test deps 2024-03-19 16:03:49 +01:00
Johannes Zellner 135d24faa4 Update to 2.51.0 2024-03-19 16:03:34 +01:00
Johannes Zellner 32852f3c74 Bump version 2024-02-26 14:16:11 +01:00
Johannes Zellner 7e21e6cba8 Update test deps 2024-02-26 14:08:54 +01:00
Johannes Zellner ad989ec62b Update to 2.50.1 2024-02-26 14:08:44 +01:00
Johannes Zellner 1f999d3267 Bump version 2024-02-22 12:43:45 +01:00
Johannes Zellner eefdbf4b07 Update test deps 2024-02-22 12:28:32 +01:00
Johannes Zellner 36d935c078 Update to 2.50.0 2024-02-22 12:27:23 +01:00
Girish Ramakrishnan 37c0353055 Version 1.28.1 2024-01-16 08:53:34 +01:00
Girish Ramakrishnan fdc45b56d1 Update Prometheus to 2.49.1 2024-01-16 08:48:34 +01:00
6 changed files with 724 additions and 244 deletions

View file

@ -454,4 +454,89 @@
* [FEATURE] API: Add `exclude_alerts` query parameter to /api/v1/rules to only return recording rules. #12999
* [FEATURE] TSDB: --storage.tsdb.retention.time flag value is now exposed as a `prometheus_tsdb_retention_limit_seconds` metric. #12986
* [FEATURE] Scraping: Add ability to specify priority of scrape protocols to accept during scrape (e.g. to scrape Prometheus proto format for certain jobs). This can be changed by setting `global.scrape_protocols` and `scrape_config.scrape_protocols`. #12738
*
[1.28.1]
* Update Prometheus to 2.49.1
* [Full changelog](https://github.com/prometheus/prometheus/releases/tag/v2.49.1)
* [BUGFIX] TSDB: Fixed a wrong q= value in scrape accept header #13313
[1.29.0]
* Update Prometheus to 2.50.0
* [Full changelog](https://github.com/prometheus/prometheus/releases/tag/v2.50.0)
* [CHANGE] Remote Write: Error storage.ErrTooOldSample is now generating HTTP error 400 instead of HTTP error 500. #13335
* [FEATURE] Remote Write: Drop old inmemory samples. Activated using the config entry sample_age_limit. #13002
* [FEATURE] Experimental: Add support for ingesting zeros as created timestamps. (enabled under the feature-flag created-timestamp-zero-ingestion). #12733 #13279
* [FEATURE] Promtool: Add analyze histograms command. #12331
* [FEATURE] TSDB/compaction: Add a way to enable overlapping compaction. #13282 #13393 #13398
* [FEATURE] Add automatic memory limit handling. Activated using the feature flag. auto-gomemlimit #13395
* [ENHANCEMENT] Promtool: allow specifying multiple matchers in promtool tsdb dump. #13296
* [ENHANCEMENT] PromQL: Restore more efficient version of NewPossibleNonCounterInfo annotation. #13022
* [ENHANCEMENT] Kuma SD: Extend configuration to allow users to specify client ID. #13278
* [ENHANCEMENT] PromQL: Use natural sort in sort_by_label and sort_by_label_desc. This is experimental. #13411
* [ENHANCEMENT] Native Histograms: support native_histogram_min_bucket_factor in scrape_config. #13222
* [ENHANCEMENT] Native Histograms: Issue warning if histogramRate is applied to the wrong kind of histogram. #13392
* [ENHANCEMENT] TSDB: Make transaction isolation data structures smaller. #13015
* [ENHANCEMENT] TSDB/postings: Optimize merge using Loser Tree. #12878
* [ENHANCEMENT] TSDB: Simplify internal series delete function. #13261
* [ENHANCEMENT] Agent: Performance improvement by making the global hash lookup table smaller. #13262
* [ENHANCEMENT] PromQL: faster execution of metric functions, e.g. abs(), rate() #13446
* [ENHANCEMENT] TSDB: Optimize label values with matchers by taking shortcuts. #13426
* [ENHANCEMENT] Kubernetes SD: Check preconditions earlier and avoid unnecessary checks or iterations in kube_sd. #13408
* [ENHANCEMENT] Promtool: Improve visibility for promtool test rules with JSON colored formatting. #13342
* [ENHANCEMENT] Consoles: Exclude iowait and steal from CPU Utilisation. #9593
* [ENHANCEMENT] Various improvements and optimizations on Native Histograms. #13267, #13215, #13276 #13289, #13340
* [BUGFIX] Scraping: Fix quality value in HTTP Accept header. #13313
* [BUGFIX] UI: Fix usage of the function time() that was crashing. #13371
* [BUGFIX] Azure SD: Fix SD crashing when it finds a VM scale set. #13578
[1.29.1]
* Update Prometheus to 2.50.1
* [Full changelog](https://github.com/prometheus/prometheus/releases/tag/v2.50.1)
* [BUGFIX] API: Fix metadata API using wrong field names. #13633
[1.30.0]
* Update Prometheus to 2.51.0
* [Full changelog](https://github.com/prometheus/prometheus/releases/tag/v2.51.0)
[1.30.1]
* Update Prometheus to 2.51.1
* [Full changelog](https://github.com/prometheus/prometheus/releases/tag/v2.51.1)
* [BUGFIX] PromQL: Re-instate validation of `label_join` destination label #13803
* [BUGFIX] Scraping (experimental native histograms): Fix handling of the min bucket factor on sync of targets #13846
* [BUGFIX] PromQL: Some queries could return the same series twice (library use only) #13845
[1.30.2]
* Update Prometheus to 2.51.2
* [Full changelog](https://github.com/prometheus/prometheus/releases/tag/v2.51.2)
* Notifier: could hang when using relabeling on alerts
[1.31.0]
* Update Prometheus to 2.52.0
* [Full changelog](https://github.com/prometheus/prometheus/releases/tag/v2.52.0)
* [CHANGE] TSDB: Fix the predicate checking for blocks which are beyond the retention period to include the ones right at the retention boundary. #9633
* [FEATURE] Kubernetes SD: Add a new metric prometheus_sd_kubernetes_failures_total to track failed requests to Kubernetes API. #13554
* [FEATURE] Kubernetes SD: Add node and zone metadata labels when using the endpointslice role. #13935
* [FEATURE] Azure SD/Remote Write: Allow usage of Azure authorization SDK. #13099
* [FEATURE] Alerting: Support native histogram templating. #13731
* [FEATURE] Linode SD: Support IPv6 range discovery and region filtering. #13774
* [ENHANCEMENT] PromQL: Performance improvements for queries with regex matchers. #13461
* [ENHANCEMENT] PromQL: Performance improvements when using aggregation operators. #13744
* [ENHANCEMENT] PromQL: Validate label_join destination label. #13803
* [ENHANCEMENT] Scrape: Increment prometheus_target_scrapes_sample_duplicate_timestamp_total metric on duplicated series during one scrape. #12933
* [ENHANCEMENT] TSDB: Many improvements in performance. #13742 #13673 #13782
* [ENHANCEMENT] TSDB: Pause regular block compactions if the head needs to be compacted (prioritize head as it increases memory consumption). #13754
* [ENHANCEMENT] Observability: Improved logging during signal handling termination. #13772
* [ENHANCEMENT] Observability: All log lines for drop series use "num_dropped" key consistently. #13823
* [ENHANCEMENT] Observability: Log chunk snapshot and mmaped chunk replay duration during WAL replay. #13838
* [ENHANCEMENT] Observability: Log if the block is being created from WBL during compaction. #13846
* [BUGFIX] PromQL: Fix inaccurate sample number statistic when querying histograms. #13667
* [BUGFIX] PromQL: Fix histogram_stddev and histogram_stdvar for cases where the histogram has negative buckets. #13852
* [BUGFIX] PromQL: Fix possible duplicated label name and values in a metric result for specific queries. #13845
* [BUGFIX] Scrape: Fix setting native histogram schema factor during scrape. #13846
* [BUGFIX] TSDB: Fix counting of histogram samples when creating WAL checkpoint stats. #13776
* [BUGFIX] TSDB: Fix cases of compacting empty heads. #13755
* [BUGFIX] TSDB: Count float histograms in WAL checkpoint. #13844
* [BUGFIX] Remote Read: Fix memory leak due to broken requests. #13777
* [BUGFIX] API: Stop building response for /api/v1/series/ when the API request was cancelled. #13766
* [BUGFIX] promtool: Fix panic on promtool tsdb analyze --extended when no native histograms are present. #13976

View file

@ -1,6 +1,6 @@
{
"version": "1.28.0",
"upstreamVersion": "2.49.0",
"version": "1.31.0",
"upstreamVersion": "2.52.0",
"id": "io.prometheus.cloudronapp",
"title": "Prometheus Server",
"author": "Prometheus Developers",

View file

@ -3,7 +3,7 @@ FROM cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768
RUN mkdir -p /app/code /app/pkg
WORKDIR /app/code
ARG VERSION=2.49.0
ARG VERSION=2.52.0
RUN curl -L https://github.com/prometheus/prometheus/releases/download/v${VERSION}/prometheus-${VERSION}.linux-amd64.tar.gz | tar zxvf - --strip-components 1

824
test/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -10,10 +10,10 @@
"license": "ISC",
"devDependencies": {
"expect.js": "^0.3.1",
"mocha": "^10.2.0",
"selenium-webdriver": "^4.16.0"
"mocha": "^10.4.0",
"selenium-webdriver": "^4.20.0"
},
"dependencies": {
"chromedriver": "^120.0.1"
"chromedriver": "^124.0.2"
}
}

View file

@ -56,18 +56,29 @@ describe('Application life cycle test', function () {
expect(app).to.be.an('object');
}
async function login() {
await browser.get(`https://${app.fqdn}/login`);
await waitForElement(By.xpath('//input[@name="username"]'));
await browser.findElement(By.xpath('//input[@name="username"]')).sendKeys(username);
await browser.findElement(By.xpath('//input[@name="password"]')).sendKeys(password);
await browser.findElement(By.id('login')).click();
async function login(session = true) {
await browser.get(`https://${app.fqdn}`);
await waitForElement(By.id('loginProceedButton'));
await browser.findElement(By.id('loginProceedButton')).click();
if (!session) {
await waitForElement(By.id('inputUsername'));
await browser.findElement(By.id('inputUsername')).sendKeys(username);
await browser.findElement(By.id('inputPassword')).sendKeys(password);
await browser.findElement(By.id('loginSubmitButton')).click();
}
await waitForElement(By.xpath('//a[text()="Alerts"]'));
}
async function logout() {
await browser.get(`https://${app.fqdn}/logout`);
await waitForElement(By.xpath('//input[@name="username"]'));
await waitForElement(By.id('loginProceedButton'));
}
async function loadApp() {
await browser.get(`https://${app.fqdn}`);
await waitForElement(By.xpath('//a[text()="Alerts"]'));
}
xit('build app', function () { execSync('cloudron build', EXEC_ARGS); });
@ -75,12 +86,12 @@ describe('Application life cycle test', function () {
it('can get app information', getAppInfo);
it('can login', login);
it('can logout', logout);
it('can login', login.bind(null, false));
it('can load app', loadApp);
it('can restart app', function () { execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS); });
it('can login', login);
it('can logout', logout);
it('can load app', loadApp);
it('backup app', function () { execSync(`cloudron backup create --app ${app.id}`, EXEC_ARGS); });
it('restore app', function () {
@ -91,13 +102,13 @@ describe('Application life cycle test', function () {
execSync(`cloudron restore --backup ${backups[0].id} --app ${app.id}`, EXEC_ARGS);
});
it('can login', login);
it('can logout', logout);
it('can load app', loadApp);
it('move to different location', function () { execSync(`cloudron configure --location ${LOCATION}2 --app ${app.id}`, EXEC_ARGS); });
it('can get app information', getAppInfo);
it('can login', login);
it('can load app', loadApp);
it('can logout', logout);
it('uninstall app', function () { execSync(`cloudron uninstall --app ${app.id}`, EXEC_ARGS); });
@ -105,9 +116,15 @@ describe('Application life cycle test', function () {
// test update
it('can install app', function () { execSync(`cloudron install --appstore-id io.prometheus.cloudronapp --location ${LOCATION}`, EXEC_ARGS); });
it('can get app information', getAppInfo);
// it('can login', login);
it('can load app', loadApp);
it('can update', function () { execSync(`cloudron update --app ${app.id}`, EXEC_ARGS); });
it('can login', login);
it('can load app', loadApp);
it('can logout', logout);
it('uninstall app', function () { execSync(`cloudron uninstall --app ${app.id}`, EXEC_ARGS); });
});