Skip to content

Commit

Permalink
Add some config for grafana and prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
containerscrew committed Oct 24, 2023
1 parent c2b458a commit 610493e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/grafana/datasource.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: 1

datasources:
- name: Prometheus
type: prometheus
url: http://prometheus:9090
isDefault: true
access: proxy
editable: true
30 changes: 30 additions & 0 deletions config/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- static_configs:
- targets: []
scheme: http
timeout: 10s
api_version: v1
scrape_configs:
- job_name: prometheus
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- localhost:9090
# - job_name: 'service'
# honor_timestamps: true
# scrape_interval: 15s
# scrape_timeout: 10s
# metrics_path: /metrics
# scheme: http
# # metrics_path defaults to '/metrics' # scheme defaults to 'http'.
# static_configs:
# - targets: ['api:8080'] # ip of my local machine inside my local network

0 comments on commit 610493e

Please sign in to comment.