-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add payload size metric * Decrease bucket sizes * Add configuration overrides for buckets on histogram metrics * Add client side metrics to the default registry With this, every application must expose their own prometheus HTTP handler for the metrics endpoint; after that is done, the EG client metrics will be available on the same registry. * Add docker compose setup for prometheus and grafana
- Loading branch information
1 parent
1b7881d
commit 131ffb3
Showing
8 changed files
with
178 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: '3.8' | ||
|
||
volumes: | ||
prometheus_data: {} | ||
grafana_data: {} | ||
|
||
services: | ||
prometheus: | ||
image: prom/prometheus | ||
restart: always | ||
volumes: | ||
- ./prometheus.yml:/etc/prometheus/prometheus.yml | ||
- prometheus_data:/prometheus | ||
command: | ||
- '--config.file=/etc/prometheus/prometheus.yml' | ||
- '--storage.tsdb.path=/prometheus' | ||
- '--web.console.libraries=/usr/share/prometheus/console_libraries' | ||
- '--web.console.templates=/usr/share/prometheus/consoles' | ||
ports: | ||
- "9090:9090" | ||
|
||
grafana: | ||
image: grafana/grafana | ||
restart: always | ||
environment: | ||
GF_INSTALL_PLUGINS: 'grafana-clock-panel,grafana-simple-json-datasource' | ||
GF_SECURITY_ADMIN_USER: 'admin' | ||
GF_SECURITY_ADMIN_PASSWORD: 'foobar' | ||
GF_USERS_ALLOW_SIGN_UP: 'false' | ||
volumes: | ||
- grafana_data:/var/lib/grafana | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- prometheus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
scrape_configs: | ||
- job_name: app | ||
scrape_interval: 5s | ||
static_configs: | ||
- targets: ['host.docker.internal:9091'] | ||
|
||
# prometheus metrics | ||
# - job_name: 'prometheus' | ||
# scrape_interval: 5s | ||
# static_configs: | ||
# - targets: ['localhost:9090'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters