Skip to content

Add Prometheus Pushgateway service - #97

Open
nathanshadburne wants to merge 3 commits into
SCE-Development:masterfrom
nathanshadburne:add-pushgateway
Open

Add Prometheus Pushgateway service#97
nathanshadburne wants to merge 3 commits into
SCE-Development:masterfrom
nathanshadburne:add-pushgateway

Conversation

@nathanshadburne

Copy link
Copy Markdown

Add a Pushgateway container to the production and development Docker Compose configurations
Expose Pushgateway on port 9091 in the development configuration
Configure federated Prometheus to scrape Pushgateway metrics

@weslayer weslayer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W pushgateway

Comment thread docker-compose.dev.yml
image: prom/pushgateway:latest
restart: unless-stopped
ports:
- 9091:9091

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have to expose port 9091? its so metrics can make it to the container?

what if we put this container behind nginx?

you can test this locally, with 3 containers

  1. pushgateway with no port exposed
  2. nginx container that routes stuff to the pushgateway, if someone visits the nginx port + a path like /pushgateway
  3. a python file to push some data to this nginx path

for an intro on nginx see
https://www.youtube.com/watch?v=HWrhSpN4ar0&t=4s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants