Skip to content

Commit

Permalink
Add prometheus datasource persistence volume (#131)
Browse files Browse the repository at this point in the history

* add prometheus persistent to volume

Signed-off-by: YANGDB <yang.db.dev@gmail.com>

---------

Signed-off-by: YANGDB <yang.db.dev@gmail.com>
  • Loading branch information
YANG-DB committed May 3, 2024
1 parent ff5514d commit ee9bee6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ x-default-logging: &logging
volumes:
opensearch-data1:
opensearch-data2:
prometheus_data:

networks:
opensearch-otel-demo:
Expand Down Expand Up @@ -759,6 +760,7 @@ services:
- --enable-feature=exemplar-storage
- --enable-feature=otlp-write-receiver
volumes:
- prometheus_data:/usr/share/prometheus/data
- ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml
deploy:
resources:
Expand Down Expand Up @@ -830,8 +832,8 @@ services:
expose:
- "5601"
environment:
vis_type_vega.enableExternalUrls: true
OPENSEARCH_HOSTS: '["https://opensearch-node1:9200","https://opensearch-node2:9200"]'
vis_type_vega.enableExternalUrls: true
depends_on:
- opensearch-node1
- opensearch-node2
Expand Down

0 comments on commit ee9bee6

Please sign in to comment.