run all backup tasks in a slice
This commit is contained in:
parent
d351573a3b
commit
4c54a80122
6 changed files with 61 additions and 3 deletions
|
|
@ -14,6 +14,12 @@ receivers:
|
|||
filesystem:
|
||||
network:
|
||||
load:
|
||||
|
||||
# Record backup script outputs
|
||||
journald:
|
||||
matches:
|
||||
- _SYSTEMD_SLICE: backup.slice
|
||||
|
||||
prometheus:
|
||||
config:
|
||||
scrape_configs:
|
||||
|
|
@ -22,13 +28,17 @@ receivers:
|
|||
static_configs:
|
||||
- targets: ['localhost:2019']
|
||||
- job_name: 'miniflux'
|
||||
scrape_interval: 30s
|
||||
scrape_interval: 1m
|
||||
static_configs:
|
||||
- targets: ['localhost:8002']
|
||||
- job_name: 'restic-rest'
|
||||
scrape_interval: 30s
|
||||
scrape_interval: 1m
|
||||
static_configs:
|
||||
- targets: ['localhost:8000']
|
||||
- job_name: 'forgejo'
|
||||
scrape_interval: 1m
|
||||
static_configs:
|
||||
- targets: ['localhost:8027']
|
||||
|
||||
# Processors specify what happens with the received data
|
||||
processors:
|
||||
|
|
@ -59,6 +69,15 @@ exporters:
|
|||
# x-greptime-pipeline-name: '<pipeline_name>'
|
||||
tls:
|
||||
insecure: true
|
||||
otlphttp/logs_journald:
|
||||
endpoint: '{{ otel_logs_endpoint }}'
|
||||
headers:
|
||||
# x-greptime-db-name: '<your_db_name>'
|
||||
x-greptime-log-table-name: 'journald_logs'
|
||||
x-greptime-pipeline-name: 'journald_logs'
|
||||
# x-greptime-pipeline-name: 'greptime_identity'
|
||||
tls:
|
||||
insecure: true
|
||||
|
||||
otlphttp/metrics:
|
||||
endpoint: '{{ otel_metrics_endpoint }}'
|
||||
|
|
@ -69,6 +88,8 @@ exporters:
|
|||
# x-greptime-db-name: '<your_db_name>'
|
||||
tls:
|
||||
insecure: true
|
||||
debug:
|
||||
verbosity: normal
|
||||
|
||||
# Service pipelines pull the configured receivers, processors, and exporters together
|
||||
# into pipelines that process data
|
||||
|
|
@ -88,3 +109,7 @@ service:
|
|||
receivers: [otlp]
|
||||
processors: [batch, resourcedetection]
|
||||
exporters: [otlphttp/logs]
|
||||
logs/journald:
|
||||
receivers: [journald]
|
||||
processors: [batch, resourcedetection]
|
||||
exporters: [debug, otlphttp/logs_journald]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue