-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* grafana-integration: initial version copied from /benchmark * grafana-integration: add plugins/datasource * grafana-integration: add pyroscope example dashboards * grafana-integration: cleanup prometheus.yml * grafana-integration: add basic explanation to readme * makes grafana dashboard a little bit prettier Co-authored-by: Dmitry Filimonov <dmitry@pyroscope.io>
- Loading branch information
1 parent
5d5fd62
commit bc34086
Showing
11 changed files
with
2,940 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Pyroscope Grafana Integration | ||
This example shows pyroscope + grafana + prometheus integration | ||
|
||
# Running | ||
|
||
```bash | ||
docker-compose up | ||
``` | ||
|
||
Then access grafana at http://localhost:3000 | ||
Pyroscope is also available at http://localhost:4040 | ||
|
||
|
||
# Development | ||
|
||
To start from scratch, use | ||
``` | ||
yes | docker-compose rm | ||
docker-compose rm | ||
``` |
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,37 @@ | ||
version: "3.9" | ||
services: | ||
prometheus: | ||
image: prom/prometheus:latest | ||
volumes: | ||
- ./prometheus:/etc/prometheus/ | ||
- data-prometheus:/prometheus | ||
|
||
grafana: | ||
image: grafana/grafana:8.1.1 | ||
volumes: | ||
- ./grafana-provisioning:/etc/grafana/provisioning | ||
- ./grafana/grafana.ini:/etc/grafana/grafana.ini | ||
- ./grafana/home.json:/default-dashboard.json | ||
environment: | ||
- "GF_INSTALL_PLUGINS=pyroscope-datasource,pyroscope-panel" | ||
ports: | ||
- 3000:3000 | ||
|
||
pyroscope: | ||
image: "pyroscope/pyroscope:latest" | ||
ports: | ||
- 4040:4040 | ||
command: | ||
- server | ||
environment: | ||
- PYROSCOPE_LOG_LEVEL=info | ||
- PYROSCOPE_WAIT_AFTER_STOP=true | ||
|
||
|
||
go-agent: | ||
build: | ||
context: ../golang | ||
|
||
volumes: | ||
data-prometheus: | ||
driver: local |
8 changes: 8 additions & 0 deletions
8
examples/grafana-integration/grafana-provisioning/dashboards/main.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,8 @@ | ||
apiVersion: 1 | ||
|
||
providers: | ||
- name: dashboards | ||
type: file | ||
updateIntervalSeconds: 5 | ||
options: | ||
path: /etc/grafana/provisioning/dashboards |
Oops, something went wrong.