1
0
mirror of synced 2025-01-09 07:22:17 +00:00

Pin prometheus version for otlp functionality

This commit is contained in:
Gusto 2024-12-20 12:54:04 +02:00
parent 7550c2970b
commit 38dad64aae
6 changed files with 10 additions and 7 deletions

View File

@ -4,13 +4,13 @@ services:
prometheus:
container_name: prometheus
image: prom/prometheus:latest
image: prom/prometheus:v3.0.1
volumes:
- ./testnet/monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:z
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.retention.time=7d
- --enable-feature=otlp-write-receiver
- --web.enable-otlp-receiver
ports:
- 127.0.0.1:9090:9090
restart: on-failure
@ -28,6 +28,8 @@ services:
volumes:
- ./testnet/monitoring/grafana/grafana.ini:/etc/grafana/grafana.ini:z
- ./testnet/monitoring/grafana/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:z
- ./testnet/monitoring/grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yml:z
- ./testnet/monitoring/grafana/dashboards:/var/lib/grafana/dashboards/:z
ports:
- 9091:3000
restart: on-failure

View File

@ -78,13 +78,13 @@ services:
prometheus:
container_name: prometheus
image: prom/prometheus:latest
image: prom/prometheus:v3.0.1
volumes:
- ./testnet/monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:z
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.retention.time=7d
- --enable-feature=otlp-write-receiver
- --web.enable-otlp-receiver
ports:
- 127.0.0.1:9090:9090
restart: on-failure
@ -102,6 +102,8 @@ services:
volumes:
- ./testnet/monitoring/grafana/grafana.ini:/etc/grafana/grafana.ini:z
- ./testnet/monitoring/grafana/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:z
- ./testnet/monitoring/grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yml:z
- ./testnet/monitoring/grafana/dashboards:/var/lib/grafana/dashboards/:z
ports:
- 9091:3000
restart: on-failure

View File

@ -456,6 +456,7 @@ where
&mut self.block_subscription_sender
)
.await;
tracing::info!(counter.consensus_processed_blocks = 1);
}
_ = slot_timer.next() => {

View File

@ -14,7 +14,7 @@ RUN cargo install cargo-binstall
RUN cargo binstall -y cargo-risczero
RUN cargo risczero install
RUN cargo build --release --all --features metrics
RUN cargo build --release
# NODE IMAGE ----------------------------------------------------------

View File

@ -1,5 +1,4 @@
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
monitor: "Monitoring"

View File

@ -146,4 +146,3 @@ fn create_metadata(app_id: &[u8], index: u64) -> kzgrs_backend::dispersal::Metad
index.into(),
)
}