Skip to content

Commit

Permalink
Added example template for alloy
Browse files Browse the repository at this point in the history
  • Loading branch information
acrn committed Nov 27, 2024
1 parent 01dead8 commit 21b47bb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manifests/otel/alloy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@
mode => '0644',
group => 'root',
}
file { '/etc/alloy/targets.d/example.yaml' :
ensure => 'file',
notify => Service['alloy'],
mode => '0644',
group => 'root',
content => template( 'sunet/otel/example.yaml' ),
}
file { '/etc/alloy/config.alloy' :
ensure => 'file',
notify => Service['alloy'],
Expand Down
15 changes: 15 additions & 0 deletions templates/otel/example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# - targets:
# - localhost:5000
# labels:
# __metrics_path__: metrics/prometheus
# job: example
# instance: example.sunet.se
# - targets:
# - 127.0.0.1:9999
# - 127.0.0.1:10101
# labels:
# job: worker
# - targets:
# - 127.0.0.1:9090
# labels:
# job: prometheus

0 comments on commit 21b47bb

Please sign in to comment.