-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make longterm monitoring deployable on a different server
- Loading branch information
1 parent
0307996
commit 2eab8b7
Showing
8 changed files
with
33 additions
and
23 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
6 changes: 0 additions & 6 deletions
6
...ptional-components/prometheus-longterm-metrics/config/monitoring/docker-compose-extra.yml
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...e/optional-components/prometheus-longterm-metrics/config/monitoring/prometheus.null.rules
This file was deleted.
Oops, something went wrong.
17 changes: 12 additions & 5 deletions
17
birdhouse/optional-components/prometheus-longterm-metrics/default.env
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 |
---|---|---|
@@ -1,23 +1,30 @@ | ||
export PROMETHEUS_LONGTERM_VERSION='${PROMETHEUS_VERSION:-"v2.52.0"}' | ||
export PROMETHEUS_LONGTERM_DOCKER='${PROMETHEUS_DOCKER:-prom/prometheus}' | ||
export PROMETHEUS_LONGTERM_IMAGE='${PROMETHEUS_LONGTERM_DOCKER}:${PROMETHEUS_LONGTERM_VERSION}' | ||
|
||
export PROMETHEUS_LONGTERM_RETENTION_TIME=1y | ||
export PROMETHEUS_LONGTERM_ENABLE_DEFAULT_RULES=True | ||
export PROMETHEUS_LONGTERM_SCRAPE_INTERVAL=1h | ||
|
||
# These are the prometheus defaults | ||
export PROMETHEUS_LONGTERM_TSDB_MIN_BLOCK_DURATION=2h | ||
export PROMETHEUS_LONGTERM_TSDB_MAX_BLOCK_DURATION=1d12h | ||
|
||
export PROMETHEUS_LONGTERM_RULES_FILE='$([ "${PROMETHEUS_LONGTERM_ENABLE_DEFAULT_RULES}" = "True" ] && echo prometheus.rules || echo prometheus.null.rules)' | ||
# These are the targets that | ||
export PROMETHEUS_LONGTERM_TARGETS='["prometheus:9090"]' # yaml list syntax | ||
|
||
OPTIONAL_VARS=" | ||
$OPTIONAL_VARS | ||
\$PROMETHEUS_LONGTERM_SCRAPE_INTERVAL | ||
\$PROMETHEUS_LONGTERM_TARGETS | ||
" | ||
|
||
export DELAYED_EVAL=" | ||
$DELAYED_EVAL | ||
PROMETHEUS_LONGTERM_VERSION | ||
PROMETHEUS_LONGTERM_DOCKER | ||
PROMETHEUS_LONGTERM_IMAGE | ||
PROMETHEUS_LONGTERM_RULES_FILE | ||
" | ||
|
||
COMPONENT_DEPENDENCIES=" | ||
./components/monitoring | ||
" | ||
# Note that this component does not depend explicitly on the `components/monitoring` component so that this can | ||
# theoretically be deployed on a different machine than the `prometheus` service. This is currently untested. |
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
6 changes: 6 additions & 0 deletions
6
.../optional-components/prometheus-longterm-rules/config/monitoring/docker-compose-extra.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,6 @@ | ||
version: "3.4" | ||
|
||
services: | ||
prometheus: | ||
volumes: | ||
- ./optional-components/prometheus-longterm-rules/config/monitoring/prometheus.rules:/etc/prometheus/prometheus-longterm-metrics.rules:ro |
File renamed without changes.