Skip to content

Commit 9d4aa26

Browse files
authored
Merge pull request #18 from grafana/codesome/syncprom2
Sync upstream
2 parents 04e7926 + e37ff8f commit 9d4aa26

73 files changed

Lines changed: 1495 additions & 1079 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
steps:
121121
- checkout
122122
- run: ./scripts/sync_repo_files.sh
123+
- run: ./scripts/sync_codemirror.sh
123124

124125
workflows:
125126
version: 2

.gitpod.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM gitpod/workspace-full
2+
3+
ENV CUSTOM_NODE_VERSION=16
4+
5+
RUN bash -c ". .nvm/nvm.sh && nvm install ${CUSTOM_NODE_VERSION} && nvm use ${CUSTOM_NODE_VERSION} && nvm alias default ${CUSTOM_NODE_VERSION}"
6+
7+
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix

.gitpod.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
---
1+
image:
2+
file: .gitpod.Dockerfile
23
tasks:
34
- init:
45
make build
56
command: |
67
gp sync-done build
78
./prometheus --config.file=documentation/examples/prometheus.yml
89
- command: |
9-
cd web/ui/react-app
10+
cd web/ui/
1011
gp sync-await build
1112
unset BROWSER
1213
export DANGEROUSLY_DISABLE_HOST_CHECK=true

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## 2.30.3 / 2021-10-05
2+
3+
* [BUGFIX] TSDB: Fix panic on failed snapshot replay. #9438
4+
* [BUGFIX] TSDB: Don't fail snapshot replay with exemplar storage disabled when the snapshot contains exemplars. #9438
5+
6+
## 2.30.2 / 2021-10-01
7+
8+
* [BUGFIX] TSDB: Don't error on overlapping m-mapped chunks during WAL replay. #9381
9+
10+
## 2.30.1 / 2021-09-28
11+
12+
* [ENHANCEMENT] Remote Write: Redact remote write URL when used for metric label. #9383
13+
* [ENHANCEMENT] UI: Redact remote write URL and proxy URL passwords in the `/config` page. #9408
14+
* [BUGFIX] promtool rules backfill: Prevent creation of data before the start time. #9339
15+
* [BUGFIX] promtool rules backfill: Do not query after the end time. #9340
16+
* [BUGFIX] Azure SD: Fix panic when no computername is set. #9387
17+
118
## 2.30.0 / 2021-09-14
219

320
* [FEATURE] **experimental** TSDB: Snapshot in-memory chunks on shutdown for faster restarts. Behind `--enable-feature=memory-snapshot-on-shutdown` flag. #7229

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ COPY LICENSE /LICENSE
1414
COPY NOTICE /NOTICE
1515
COPY npm_licenses.tar.bz2 /npm_licenses.tar.bz2
1616

17-
RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/
18-
RUN mkdir -p /prometheus && \
19-
chown -R nobody:nobody etc/prometheus /prometheus
17+
WORKDIR /prometheus
18+
RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/ && \
19+
chown -R nobody:nobody /etc/prometheus /prometheus
2020

2121
USER nobody
2222
EXPOSE 9090
2323
VOLUME [ "/prometheus" ]
24-
WORKDIR /prometheus
2524
ENTRYPOINT [ "/bin/prometheus" ]
2625
CMD [ "--config.file=/etc/prometheus/prometheus.yml", \
2726
"--storage.tsdb.path=/prometheus", \

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.30.0
1+
2.30.3

discovery/azure/azure.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,9 @@ func mapFromVM(vm compute.VirtualMachine) virtualMachine {
464464
}
465465
}
466466

467-
if vm.VirtualMachineProperties != nil && vm.VirtualMachineProperties.OsProfile != nil {
467+
if vm.VirtualMachineProperties != nil &&
468+
vm.VirtualMachineProperties.OsProfile != nil &&
469+
vm.VirtualMachineProperties.OsProfile.ComputerName != nil {
468470
computerName = *(vm.VirtualMachineProperties.OsProfile.ComputerName)
469471
}
470472

discovery/consul/consul.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func NewDiscovery(conf *SDConfig, logger log.Logger) (*Discovery, error) {
199199
logger = log.NewNopLogger()
200200
}
201201

202-
wrapper, err := config.NewClientFromConfig(conf.HTTPClientConfig, "consul_sd", config.WithHTTP2Disabled(), config.WithIdleConnTimeout(2*watchTimeout))
202+
wrapper, err := config.NewClientFromConfig(conf.HTTPClientConfig, "consul_sd", config.WithIdleConnTimeout(2*watchTimeout))
203203
if err != nil {
204204
return nil, err
205205
}

discovery/digitalocean/digitalocean.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func NewDiscovery(conf *SDConfig, logger log.Logger) (*Discovery, error) {
108108
port: conf.Port,
109109
}
110110

111-
rt, err := config.NewRoundTripperFromConfig(conf.HTTPClientConfig, "digitalocean_sd", config.WithHTTP2Disabled())
111+
rt, err := config.NewRoundTripperFromConfig(conf.HTTPClientConfig, "digitalocean_sd")
112112
if err != nil {
113113
return nil, err
114114
}

discovery/eureka/eureka.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ type Discovery struct {
118118

119119
// NewDiscovery creates a new Eureka discovery for the given role.
120120
func NewDiscovery(conf *SDConfig, logger log.Logger) (*Discovery, error) {
121-
rt, err := config.NewRoundTripperFromConfig(conf.HTTPClientConfig, "eureka_sd", config.WithHTTP2Disabled())
121+
rt, err := config.NewRoundTripperFromConfig(conf.HTTPClientConfig, "eureka_sd")
122122
if err != nil {
123123
return nil, err
124124
}

0 commit comments

Comments
 (0)