mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Merge pull request #14171 from prometheus/resolveconflicts-2.52.1
Merge release-2.52 back to main
This commit is contained in:
commit
efbd6e41c5
|
@ -10,11 +10,11 @@
|
||||||
* [BUGFIX] OTLP: Don't generate target_info unless at least one identifying label is defined. #13991
|
* [BUGFIX] OTLP: Don't generate target_info unless at least one identifying label is defined. #13991
|
||||||
* [BUGFIX] OTLP: Don't generate target_info unless there are metrics. #13991
|
* [BUGFIX] OTLP: Don't generate target_info unless there are metrics. #13991
|
||||||
|
|
||||||
## 2.52.0-rc.1 / 2024-05-03
|
## 2.52.1 / 2024-05-29
|
||||||
|
|
||||||
* [BUGFIX] API: Fix missing comma during JSON encoding of API results. #14047
|
* [BUGFIX] Linode SD: Fix partial fetch when discovery would return more than 500 elements. #14141
|
||||||
|
|
||||||
## 2.52.0-rc.0 / 2024-04-22
|
## 2.52.0 / 2024-05-07
|
||||||
|
|
||||||
* [CHANGE] TSDB: Fix the predicate checking for blocks which are beyond the retention period to include the ones right at the retention boundary. #9633
|
* [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 a new metric `prometheus_sd_kubernetes_failures_total` to track failed requests to Kubernetes API. #13554
|
||||||
|
|
|
@ -186,12 +186,12 @@ func (d *Discovery) refresh(ctx context.Context) ([]*targetgroup.Group, error) {
|
||||||
|
|
||||||
if d.lastResults != nil && d.eventPollingEnabled {
|
if d.lastResults != nil && d.eventPollingEnabled {
|
||||||
// Check to see if there have been any events. If so, refresh our data.
|
// Check to see if there have been any events. If so, refresh our data.
|
||||||
opts := linodego.ListOptions{
|
eventsOpts := linodego.ListOptions{
|
||||||
PageOptions: &linodego.PageOptions{Page: 1},
|
PageOptions: &linodego.PageOptions{Page: 1},
|
||||||
PageSize: 25,
|
PageSize: 25,
|
||||||
Filter: fmt.Sprintf(filterTemplate, d.lastRefreshTimestamp.Format("2006-01-02T15:04:05")),
|
Filter: fmt.Sprintf(filterTemplate, d.lastRefreshTimestamp.Format("2006-01-02T15:04:05")),
|
||||||
}
|
}
|
||||||
events, err := d.client.ListEvents(ctx, &opts)
|
events, err := d.client.ListEvents(ctx, &eventsOpts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
var e *linodego.Error
|
var e *linodego.Error
|
||||||
if errors.As(err, &e) && e.Code == http.StatusUnauthorized {
|
if errors.As(err, &e) && e.Code == http.StatusUnauthorized {
|
||||||
|
@ -232,31 +232,40 @@ func (d *Discovery) refreshData(ctx context.Context) ([]*targetgroup.Group, erro
|
||||||
tg := &targetgroup.Group{
|
tg := &targetgroup.Group{
|
||||||
Source: "Linode",
|
Source: "Linode",
|
||||||
}
|
}
|
||||||
opts := linodego.ListOptions{
|
// We need 3 of these because Linodego writes into the structure during pagination
|
||||||
|
listInstancesOpts := linodego.ListOptions{
|
||||||
|
PageSize: 500,
|
||||||
|
}
|
||||||
|
listIPAddressesOpts := linodego.ListOptions{
|
||||||
|
PageSize: 500,
|
||||||
|
}
|
||||||
|
listIPv6RangesOpts := linodego.ListOptions{
|
||||||
PageSize: 500,
|
PageSize: 500,
|
||||||
}
|
}
|
||||||
|
|
||||||
// If region filter provided, use it to constrain results.
|
// If region filter provided, use it to constrain results.
|
||||||
if d.region != "" {
|
if d.region != "" {
|
||||||
opts.Filter = fmt.Sprintf(regionFilterTemplate, d.region)
|
listInstancesOpts.Filter = fmt.Sprintf(regionFilterTemplate, d.region)
|
||||||
|
listIPAddressesOpts.Filter = fmt.Sprintf(regionFilterTemplate, d.region)
|
||||||
|
listIPv6RangesOpts.Filter = fmt.Sprintf(regionFilterTemplate, d.region)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gather all linode instances.
|
// Gather all linode instances.
|
||||||
instances, err := d.client.ListInstances(ctx, &opts)
|
instances, err := d.client.ListInstances(ctx, &listInstancesOpts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
d.metrics.failuresCount.Inc()
|
d.metrics.failuresCount.Inc()
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gather detailed IP address info for all IPs on all linode instances.
|
// Gather detailed IP address info for all IPs on all linode instances.
|
||||||
detailedIPs, err := d.client.ListIPAddresses(ctx, &opts)
|
detailedIPs, err := d.client.ListIPAddresses(ctx, &listIPAddressesOpts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
d.metrics.failuresCount.Inc()
|
d.metrics.failuresCount.Inc()
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gather detailed IPv6 Range info for all linode instances.
|
// Gather detailed IPv6 Range info for all linode instances.
|
||||||
ipv6RangeList, err := d.client.ListIPv6Ranges(ctx, &opts)
|
ipv6RangeList, err := d.client.ListIPv6Ranges(ctx, &listIPv6RangesOpts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
d.metrics.failuresCount.Inc()
|
d.metrics.failuresCount.Inc()
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@prometheus-io/codemirror-promql",
|
"name": "@prometheus-io/codemirror-promql",
|
||||||
"version": "0.52.0-rc.1",
|
"version": "0.52.1",
|
||||||
"description": "a CodeMirror mode for the PromQL language",
|
"description": "a CodeMirror mode for the PromQL language",
|
||||||
"types": "dist/esm/index.d.ts",
|
"types": "dist/esm/index.d.ts",
|
||||||
"module": "dist/esm/index.js",
|
"module": "dist/esm/index.js",
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/prometheus/prometheus/blob/main/web/ui/module/codemirror-promql/README.md",
|
"homepage": "https://github.com/prometheus/prometheus/blob/main/web/ui/module/codemirror-promql/README.md",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prometheus-io/lezer-promql": "0.52.0-rc.1",
|
"@prometheus-io/lezer-promql": "0.52.1",
|
||||||
"lru-cache": "^7.18.3"
|
"lru-cache": "^7.18.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@prometheus-io/lezer-promql",
|
"name": "@prometheus-io/lezer-promql",
|
||||||
"version": "0.52.0-rc.1",
|
"version": "0.52.1",
|
||||||
"description": "lezer-based PromQL grammar",
|
"description": "lezer-based PromQL grammar",
|
||||||
"main": "dist/index.cjs",
|
"main": "dist/index.cjs",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|
14
web/ui/package-lock.json
generated
14
web/ui/package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "prometheus-io",
|
"name": "prometheus-io",
|
||||||
"version": "0.52.0-rc.1",
|
"version": "0.52.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "prometheus-io",
|
"name": "prometheus-io",
|
||||||
"version": "0.52.0-rc.1",
|
"version": "0.52.1",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"react-app",
|
"react-app",
|
||||||
"module/*"
|
"module/*"
|
||||||
|
@ -30,10 +30,10 @@
|
||||||
},
|
},
|
||||||
"module/codemirror-promql": {
|
"module/codemirror-promql": {
|
||||||
"name": "@prometheus-io/codemirror-promql",
|
"name": "@prometheus-io/codemirror-promql",
|
||||||
"version": "0.52.0-rc.1",
|
"version": "0.52.1",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prometheus-io/lezer-promql": "0.52.0-rc.1",
|
"@prometheus-io/lezer-promql": "0.52.1",
|
||||||
"lru-cache": "^7.18.3"
|
"lru-cache": "^7.18.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
},
|
},
|
||||||
"module/lezer-promql": {
|
"module/lezer-promql": {
|
||||||
"name": "@prometheus-io/lezer-promql",
|
"name": "@prometheus-io/lezer-promql",
|
||||||
"version": "0.52.0-rc.1",
|
"version": "0.52.1",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lezer/generator": "^1.5.1",
|
"@lezer/generator": "^1.5.1",
|
||||||
|
@ -19233,7 +19233,7 @@
|
||||||
},
|
},
|
||||||
"react-app": {
|
"react-app": {
|
||||||
"name": "@prometheus-io/app",
|
"name": "@prometheus-io/app",
|
||||||
"version": "0.52.0-rc.1",
|
"version": "0.52.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/autocomplete": "^6.11.1",
|
"@codemirror/autocomplete": "^6.11.1",
|
||||||
"@codemirror/commands": "^6.3.2",
|
"@codemirror/commands": "^6.3.2",
|
||||||
|
@ -19251,7 +19251,7 @@
|
||||||
"@lezer/lr": "^1.3.14",
|
"@lezer/lr": "^1.3.14",
|
||||||
"@nexucis/fuzzy": "^0.4.1",
|
"@nexucis/fuzzy": "^0.4.1",
|
||||||
"@nexucis/kvsearch": "^0.8.1",
|
"@nexucis/kvsearch": "^0.8.1",
|
||||||
"@prometheus-io/codemirror-promql": "0.52.0-rc.1",
|
"@prometheus-io/codemirror-promql": "0.52.1",
|
||||||
"bootstrap": "^4.6.2",
|
"bootstrap": "^4.6.2",
|
||||||
"css.escape": "^1.5.1",
|
"css.escape": "^1.5.1",
|
||||||
"downshift": "^7.6.2",
|
"downshift": "^7.6.2",
|
||||||
|
|
|
@ -28,5 +28,5 @@
|
||||||
"ts-jest": "^29.1.1",
|
"ts-jest": "^29.1.1",
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
},
|
},
|
||||||
"version": "0.52.0-rc.1"
|
"version": "0.52.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@prometheus-io/app",
|
"name": "@prometheus-io/app",
|
||||||
"version": "0.52.0-rc.1",
|
"version": "0.52.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/autocomplete": "^6.11.1",
|
"@codemirror/autocomplete": "^6.11.1",
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
"@lezer/lr": "^1.3.14",
|
"@lezer/lr": "^1.3.14",
|
||||||
"@nexucis/fuzzy": "^0.4.1",
|
"@nexucis/fuzzy": "^0.4.1",
|
||||||
"@nexucis/kvsearch": "^0.8.1",
|
"@nexucis/kvsearch": "^0.8.1",
|
||||||
"@prometheus-io/codemirror-promql": "0.52.0-rc.1",
|
"@prometheus-io/codemirror-promql": "0.52.1",
|
||||||
"bootstrap": "^4.6.2",
|
"bootstrap": "^4.6.2",
|
||||||
"css.escape": "^1.5.1",
|
"css.escape": "^1.5.1",
|
||||||
"downshift": "^7.6.2",
|
"downshift": "^7.6.2",
|
||||||
|
|
Loading…
Reference in a new issue