mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 20:59:35 +08:00
Devenv: fix prometheus scrape ips (#23850)
* Devenv: fix prometheus scrape ips * Devenv: fix grafana in devenv reference * Devenv: fixes prom random data reference
This commit is contained in:
@ -15,7 +15,7 @@ alerting:
|
|||||||
- scheme: http
|
- scheme: http
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- "127.0.0.1:9093"
|
- "alertmanager:9093"
|
||||||
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: 'prometheus'
|
- job_name: 'prometheus'
|
||||||
@ -24,16 +24,16 @@ scrape_configs:
|
|||||||
|
|
||||||
- job_name: 'node_exporter'
|
- job_name: 'node_exporter'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['127.0.0.1:9100']
|
- targets: ['node_exporter:9100']
|
||||||
|
|
||||||
- job_name: 'fake-data-gen'
|
- job_name: 'fake-data-gen'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['127.0.0.1:9091']
|
- targets: ['fake-prometheus-data:9091']
|
||||||
|
|
||||||
- job_name: 'grafana'
|
- job_name: 'grafana'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['127.0.0.1:3000']
|
- targets: ['grafana:3000']
|
||||||
|
|
||||||
- job_name: 'prometheus-random-data'
|
- job_name: 'prometheus-random-data'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['127.0.0.1:8081']
|
- targets: ['prometheus-random-data:8080']
|
||||||
|
@ -24,16 +24,16 @@ scrape_configs:
|
|||||||
|
|
||||||
- job_name: 'node_exporter'
|
- job_name: 'node_exporter'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['127.0.0.1:9100']
|
- targets: ['node_exporter:9100']
|
||||||
|
|
||||||
- job_name: 'fake-data-gen'
|
- job_name: 'fake-data-gen'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['127.0.0.1:9091']
|
- targets: ['fake-prometheus-data:9091']
|
||||||
|
|
||||||
- job_name: 'grafana'
|
- job_name: 'grafana'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['127.0.0.1:3000']
|
- targets: ['grafana:3000']
|
||||||
|
|
||||||
- job_name: 'prometheus-random-data'
|
- job_name: 'prometheus-random-data'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['127.0.0.1:8081']
|
- targets: ['prometheus-random-data:8080']
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
FROM prom/prometheus:v1.8.2
|
|
||||||
ADD prometheus.yml /etc/prometheus/
|
|
||||||
ADD alert.rules /etc/prometheus/
|
|
@ -1,10 +0,0 @@
|
|||||||
# Alert Rules
|
|
||||||
|
|
||||||
ALERT AppCrash
|
|
||||||
IF process_open_fds > 0
|
|
||||||
FOR 15s
|
|
||||||
LABELS { severity="critical" }
|
|
||||||
ANNOTATIONS {
|
|
||||||
summary = "Number of open fds > 0",
|
|
||||||
description = "Just testing"
|
|
||||||
}
|
|
@ -1,26 +0,0 @@
|
|||||||
prometheus:
|
|
||||||
build: docker/blocks/prometheus_mac
|
|
||||||
ports:
|
|
||||||
- "9090:9090"
|
|
||||||
|
|
||||||
node_exporter:
|
|
||||||
image: prom/node-exporter
|
|
||||||
ports:
|
|
||||||
- "9100:9100"
|
|
||||||
|
|
||||||
fake-prometheus-data:
|
|
||||||
image: grafana/fake-data-gen
|
|
||||||
ports:
|
|
||||||
- "9091:9091"
|
|
||||||
environment:
|
|
||||||
FD_DATASOURCE: prom
|
|
||||||
|
|
||||||
alertmanager:
|
|
||||||
image: quay.io/prometheus/alertmanager
|
|
||||||
ports:
|
|
||||||
- "9093:9093"
|
|
||||||
|
|
||||||
prometheus-random-data:
|
|
||||||
build: docker/blocks/prometheus_random_data
|
|
||||||
ports:
|
|
||||||
- "8081:8080"
|
|
@ -1,39 +0,0 @@
|
|||||||
# my global config
|
|
||||||
global:
|
|
||||||
scrape_interval: 10s # By default, scrape targets every 15 seconds.
|
|
||||||
evaluation_interval: 10s # By default, scrape targets every 15 seconds.
|
|
||||||
# scrape_timeout is set to the global default (10s).
|
|
||||||
|
|
||||||
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
|
|
||||||
rule_files:
|
|
||||||
- "alert.rules"
|
|
||||||
# - "first.rules"
|
|
||||||
# - "second.rules"
|
|
||||||
|
|
||||||
alerting:
|
|
||||||
alertmanagers:
|
|
||||||
- scheme: http
|
|
||||||
static_configs:
|
|
||||||
- targets:
|
|
||||||
- "alertmanager:9093"
|
|
||||||
|
|
||||||
scrape_configs:
|
|
||||||
- job_name: 'prometheus'
|
|
||||||
static_configs:
|
|
||||||
- targets: ['localhost:9090']
|
|
||||||
|
|
||||||
- job_name: 'node_exporter'
|
|
||||||
static_configs:
|
|
||||||
- targets: ['node_exporter:9100']
|
|
||||||
|
|
||||||
- job_name: 'fake-data-gen'
|
|
||||||
static_configs:
|
|
||||||
- targets: ['fake-prometheus-data:9091']
|
|
||||||
|
|
||||||
- job_name: 'grafana'
|
|
||||||
static_configs:
|
|
||||||
- targets: ['host.docker.internal:3000']
|
|
||||||
|
|
||||||
- job_name: 'prometheus-random-data'
|
|
||||||
static_configs:
|
|
||||||
- targets: ['prometheus-random-data:8080']
|
|
Reference in New Issue
Block a user