Spaces:
Sleeping
Sleeping
RahulChhatbar
commited on
Commit
·
2a50139
1
Parent(s):
5e8546e
grafana
Browse files- Grafana/Dockerfile +3 -0
- Prometheus/Dockerfile +9 -0
- Prometheus/prometheus.yml +11 -0
- prometheus.yml +11 -0
Grafana/Dockerfile
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
FROM grafana/grafana:latest
|
2 |
+
|
3 |
+
EXPOSE 3000
|
Prometheus/Dockerfile
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM prom/prometheus:latest
|
2 |
+
|
3 |
+
WORKDIR /etc/prometheus
|
4 |
+
|
5 |
+
COPY prometheus.yml /etc/prometheus/prometheus.yml
|
6 |
+
|
7 |
+
EXPOSE 9090
|
8 |
+
|
9 |
+
CMD ["--config.file=/etc/prometheus/prometheus.yml"]
|
Prometheus/prometheus.yml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
global:
|
2 |
+
scrape_interval: 15s
|
3 |
+
|
4 |
+
scrape_configs:
|
5 |
+
- job_name: 'gradio_app'
|
6 |
+
static_configs:
|
7 |
+
- targets: ['localhost:8000'] # Gradio metrics
|
8 |
+
|
9 |
+
- job_name: 'node_exporter_gradio'
|
10 |
+
static_configs:
|
11 |
+
- targets: ['localhost:9100'] # Node Exporter
|
prometheus.yml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
global:
|
2 |
+
scrape_interval: 15s
|
3 |
+
|
4 |
+
scrape_configs:
|
5 |
+
- job_name: 'gradio_app'
|
6 |
+
static_configs:
|
7 |
+
- targets: ['localhost:8000']
|
8 |
+
|
9 |
+
- job_name: 'node_exporter'
|
10 |
+
static_configs:
|
11 |
+
- targets: ['localhost:9100']
|