Skip to content

Commit

Permalink
chore: add elasticsearch prometheus exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Apr 29, 2024
1 parent 959935e commit fc29042
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/container-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
echo "COMPOSE_HTTP_TIMEOUT=180" >> .env
echo "COMPOSE_PROJECT_NAME=po_search" >> .env
echo "COMPOSE_PATH_SEPARATOR=;" >> .env
echo "COMPOSE_FILE=docker-compose.yml;docker/prod.yml" >> .env
echo "COMPOSE_FILE=docker-compose.yml;docker/prod.yml;docker/monitor.yml" >> .env
# Copy variables that are same as dev
grep '\(STACK_VERSION\|ES_EXPOSE\)' .env-dev >> .env
# Set docker variables
Expand Down
10 changes: 10 additions & 0 deletions docker/monitor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
elasticsearch_exporter:
restart: ${RESTART_POLICY}
image: quay.io/prometheuscommunity/elasticsearch-exporter:latest
command:
- '--es.uri=http://es01:9200'
ports:
- 9114:9114
depends_on:
- es01

0 comments on commit fc29042

Please sign in to comment.