-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #171 from esl/mp/metrics-doc-update
This PR is primarily about metrics documentation update. It also contains the following changes which may be extracted to separate PR based on review comments. * Start the MongoosePush.Metrics.TelemetryMetrics child befor others to capture events at startup * Short metrics documentation in the code * Add example Prometheus config for MongoosePush and docker-compose file to help with a basic setup.
- Loading branch information
Showing
6 changed files
with
110 additions
and
25 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
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,12 @@ | ||
# This file needs to be used along with `docker-compose.mocks.yml` and `docker-compose.mpush.yml: | ||
# PRIV=priv docker-compose -f test/docker/docker-compose.mocks.yml -f test/docker/docker-compose.mpush.yml -f test/docker/docker-compose.prometheus.yml ... | ||
version: '3' | ||
|
||
services: | ||
prometheus: | ||
image: prom/prometheus | ||
container_name: mongoose-push-prometheus | ||
ports: | ||
- "9090:9090" | ||
volumes: | ||
- ./prometheus.yml:/etc/prometheus/prometheus.yml |
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,9 @@ | ||
scrape_configs: | ||
- job_name: 'mongoose-push' | ||
scheme: 'https' #MongoosePush exposes encrypted endpoint - HTTPS | ||
tls_config: #The default certs used by MongoosePush are self-signed | ||
insecure_skip_verify: true #For checking purposes we can ignore certs verification | ||
static_configs: | ||
- targets: ['mongoose-push:8443'] | ||
labels: | ||
group: 'production' |