Skip to content

Commit bc34086

Browse files
eh-ampetethepig
andauthored
Feature/grafana example (#331)
* 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>
1 parent 5d5fd62 commit bc34086

File tree

11 files changed

+2940
-0
lines changed

11 files changed

+2940
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Pyroscope Grafana Integration
2+
This example shows pyroscope + grafana + prometheus integration
3+
4+
# Running
5+
6+
```bash
7+
docker-compose up
8+
```
9+
10+
Then access grafana at http://localhost:3000
11+
Pyroscope is also available at http://localhost:4040
12+
13+
14+
# Development
15+
16+
To start from scratch, use
17+
```
18+
yes | docker-compose rm
19+
docker-compose rm
20+
```
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: "3.9"
2+
services:
3+
prometheus:
4+
image: prom/prometheus:latest
5+
volumes:
6+
- ./prometheus:/etc/prometheus/
7+
- data-prometheus:/prometheus
8+
9+
grafana:
10+
image: grafana/grafana:8.1.1
11+
volumes:
12+
- ./grafana-provisioning:/etc/grafana/provisioning
13+
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
14+
- ./grafana/home.json:/default-dashboard.json
15+
environment:
16+
- "GF_INSTALL_PLUGINS=pyroscope-datasource,pyroscope-panel"
17+
ports:
18+
- 3000:3000
19+
20+
pyroscope:
21+
image: "pyroscope/pyroscope:latest"
22+
ports:
23+
- 4040:4040
24+
command:
25+
- server
26+
environment:
27+
- PYROSCOPE_LOG_LEVEL=info
28+
- PYROSCOPE_WAIT_AFTER_STOP=true
29+
30+
31+
go-agent:
32+
build:
33+
context: ../golang
34+
35+
volumes:
36+
data-prometheus:
37+
driver: local
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: 1
2+
3+
providers:
4+
- name: dashboards
5+
type: file
6+
updateIntervalSeconds: 5
7+
options:
8+
path: /etc/grafana/provisioning/dashboards

0 commit comments

Comments
 (0)