mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 13:23:02 +01:00
update
This commit is contained in:
20
prometheus/data/etc/graphite-mapping.yaml
Normal file
20
prometheus/data/etc/graphite-mapping.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
mappings:
|
||||
- match: test.dispatcher.*.*.*
|
||||
name: dispatcher_events_total
|
||||
labels:
|
||||
action: $2
|
||||
job: test_dispatcher
|
||||
outcome: $3
|
||||
processor: $1
|
||||
- match: '*.signup.*.*'
|
||||
name: signup_events_total
|
||||
labels:
|
||||
job: ${1}_server
|
||||
outcome: $3
|
||||
provider: $2
|
||||
- match: 'servers\.(.*)\.networking\.subnetworks\.transmissions\.([a-z0-9-]+)\.(.*)'
|
||||
match_type: regex
|
||||
name: 'servers_networking_transmissions_${3}'
|
||||
labels:
|
||||
hostname: ${1}
|
||||
device: ${2}
|
||||
@@ -1,19 +1,16 @@
|
||||
global:
|
||||
scrape_interval: 15s # By default, scrape targets every 15 seconds.
|
||||
|
||||
# Attach these labels to any time series or alerts when communicating with
|
||||
# external systems (federation, remote storage, Alertmanager).
|
||||
scrape_interval: 15s
|
||||
external_labels:
|
||||
monitor: 'codelab-monitor'
|
||||
|
||||
# A scrape configuration containing exactly one endpoint to scrape:
|
||||
# Here it's Prometheus itself.
|
||||
scrape_configs:
|
||||
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
||||
- job_name: 'prometheus'
|
||||
|
||||
# Override the global default and scrape targets from this job every 5 seconds.
|
||||
scrape_interval: 5s
|
||||
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
- job_name: 'graphite'
|
||||
honor_labels: true
|
||||
static_configs:
|
||||
- targets:
|
||||
- graphite:9108
|
||||
|
||||
Reference in New Issue
Block a user