Skip to content

Commit

Permalink
Feature/grafana example (#331)
Browse files Browse the repository at this point in the history
* 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
eh-am and petethepig authored Aug 11, 2021
1 parent 5d5fd62 commit bc34086
Show file tree
Hide file tree
Showing 11 changed files with 2,940 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/grafana-integration/README.md
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
```
37 changes: 37 additions & 0 deletions examples/grafana-integration/docker-compose.yml
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
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
Loading

0 comments on commit bc34086

Please sign in to comment.