-
Notifications
You must be signed in to change notification settings - Fork 6
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 #120 from qclaogui:meta-monitoring
[example] Enabled local LGTMP Stack meta monitoring
- Loading branch information
Showing
17 changed files
with
496 additions
and
368 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,70 @@ | ||
# LGTMP Meta Monitoring | ||
|
||
This example enabled local LGTMP Stack meta monitoring by setting `loki`,`tempo`, `mimir` and `pyroscope` 's lable `metrics.grafana.com/scrape: true`(default: false). | ||
|
||
## Docker compose | ||
|
||
`compose.yaml`: | ||
|
||
```yaml | ||
include: | ||
# # use git remote | ||
# - path: https://github.com/qclaogui/codelab-monitoring.git#main:docker-compose/monolithic-mode/all-in-one/compose.yaml | ||
|
||
# # use local path | ||
- path: ../../docker-compose/monolithic-mode/all-in-one/compose.yaml | ||
|
||
``` | ||
`compose.override.yaml`: | ||
|
||
```yaml | ||
services: | ||
loki: | ||
labels: | ||
metrics.grafana.com/scrape: true | ||
tempo: | ||
labels: | ||
metrics.grafana.com/scrape: true | ||
mimir: | ||
labels: | ||
metrics.grafana.com/scrape: true | ||
pyroscope: | ||
labels: | ||
metrics.grafana.com/scrape: true | ||
# override included service grafana for dashboards pre-provisioning | ||
grafana: | ||
volumes: | ||
- ../../monitoring-mixins/loki-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/loki-mixin | ||
- ../../monitoring-mixins/tempo-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/tempo-mixin | ||
- ../../monitoring-mixins/mimir-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/mimir-mixin | ||
- ../../monitoring-mixins/pyroscope-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/pyroscope-mixin | ||
# override included service mimirtool for rules and alerts pre-provisioning | ||
mimirtool: | ||
volumes: | ||
- ../../monitoring-mixins/loki-mixin/deploy/loki-mixin-rules.yaml:/rules/loki-mixin-rules.yaml | ||
- ../../monitoring-mixins/loki-mixin/deploy/loki-mixin-alerts.yaml:/rules/loki-mixin-alerts.yaml | ||
- ../../monitoring-mixins/tempo-mixin/deploy/tempo-mixin-rules.yaml:/rules/tempo-mixin-rules.yaml | ||
- ../../monitoring-mixins/tempo-mixin/deploy/tempo-mixin-alerts.yaml:/rules/tempo-mixin-alerts.yaml | ||
- ../../monitoring-mixins/mimir-mixin/deploy/mimir-mixin-rules.yaml:/rules/mimir-mixin-rules.yaml | ||
- ../../monitoring-mixins/mimir-mixin/deploy/mimir-mixin-alerts.yaml:/rules/mimir-mixin-alerts.yaml | ||
- ../../monitoring-mixins/pyroscope-mixin/deploy/pyroscope-mixin-rules.yaml:/rules/pyroscope-mixin-rules.yaml | ||
``` | ||
|
||
## Try it | ||
|
||
```shell | ||
COMPOSE_EXPERIMENTAL_GIT_REMOTE=true docker compose up -d --remove-orphans | ||
``` | ||
|
||
Once all containers are up and running you can search for metrics in Grafana. | ||
|
||
Navigate to [http://localhost:3000](http://localhost:3000) | ||
|
||
## Stop services | ||
|
||
```shell | ||
COMPOSE_EXPERIMENTAL_GIT_REMOTE=true docker compose down | ||
``` |
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 @@ | ||
|
||
services: | ||
loki: | ||
labels: | ||
metrics.grafana.com/scrape: true | ||
metrics.grafana.com/job: "monitoring-system/loki-single-binary" | ||
logs.grafana.com/job: "monitoring-system/loki-single-binary" | ||
tempo: | ||
labels: | ||
metrics.grafana.com/scrape: true | ||
mimir: | ||
labels: | ||
metrics.grafana.com/scrape: true | ||
pyroscope: | ||
labels: | ||
metrics.grafana.com/scrape: true | ||
|
||
# override included service grafana for dashboards pre-provisioning | ||
grafana: | ||
volumes: | ||
- ../../monitoring-mixins/loki-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/loki-mixin | ||
- ../../monitoring-mixins/tempo-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/tempo-mixin | ||
- ../../monitoring-mixins/mimir-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/mimir-mixin | ||
- ../../monitoring-mixins/pyroscope-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/pyroscope-mixin | ||
|
||
# override included service mimirtool for rules and alerts pre-provisioning | ||
mimirtool: | ||
volumes: | ||
- ../../monitoring-mixins/loki-mixin/deploy/loki-mixin-rules.yaml:/rules/loki-mixin-rules.yaml | ||
- ../../monitoring-mixins/loki-mixin/deploy/loki-mixin-alerts.yaml:/rules/loki-mixin-alerts.yaml | ||
- ../../monitoring-mixins/tempo-mixin/deploy/tempo-mixin-rules.yaml:/rules/tempo-mixin-rules.yaml | ||
- ../../monitoring-mixins/tempo-mixin/deploy/tempo-mixin-alerts.yaml:/rules/tempo-mixin-alerts.yaml | ||
- ../../monitoring-mixins/mimir-mixin/deploy/mimir-mixin-rules.yaml:/rules/mimir-mixin-rules.yaml | ||
- ../../monitoring-mixins/mimir-mixin/deploy/mimir-mixin-alerts.yaml:/rules/mimir-mixin-alerts.yaml | ||
- ../../monitoring-mixins/pyroscope-mixin/deploy/pyroscope-mixin-rules.yaml:/rules/pyroscope-mixin-rules.yaml |
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,17 @@ | ||
# ============================================================================ # | ||
# Meta Monitoring | ||
# ============================================================================ # | ||
|
||
# Usage: | ||
# COMPOSE_EXPERIMENTAL_GIT_REMOTE=true docker compose up -d --remove-orphans | ||
# COMPOSE_EXPERIMENTAL_GIT_REMOTE=true docker compose down | ||
|
||
# Note: | ||
# include is available in Docker Compose version 2.20 and later, and Docker Desktop version 4.22 and later. | ||
# docs: https://docs.docker.com/compose/multiple-compose-files/include/#include-and-overrides | ||
include: | ||
# # use git remote | ||
# - path: https://github.com/qclaogui/codelab-monitoring.git#main:docker-compose/monolithic-mode/all-in-one/compose.yaml | ||
|
||
# # use local path | ||
- path: ../../docker-compose/monolithic-mode/all-in-one/compose.yaml |
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
Oops, something went wrong.