Skip to content

Commit

Permalink
Small fixes for LGTM stack.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelfrykholm committed Sep 6, 2024
1 parent d1119cf commit 5e462fe
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions manifests/naemon_monitor.pp
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@
}
file { '/opt/naemon_monitor/loki':
ensure => directory,
owner => 'root',
owner => '10001',
mode => '0644',
group => 'root',
group => '10001',
}
file { '/opt/naemon_monitor/mimir':
ensure => directory,
Expand Down
12 changes: 8 additions & 4 deletions templates/naemon_monitor/alloy-server.alloy
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ otelcol.processor.batch "example" {
}

otelcol.exporter.otlp "monitor_tempo" {
client {
endpoint = "tempo:4317"
}
client {
endpoint = "tempo:4317"
tls {
insecure = true
insecure_skip_verify = true
}
}
}

otelcol.exporter.prometheus "monitor_mimir" {
Expand All @@ -58,4 +62,4 @@ loki.write "monitor_loki" {


}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: 1
datasources:
- name: Loki
type: loki
uid: loki
access: proxy
orgId: 1
url: http://loki:3100
Expand Down
7 changes: 4 additions & 3 deletions templates/otel/config.alloy
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// Listen to localhost for open telemetry.
// Listen to all interfaces to help with dockers sending data
// Note that we don't open the firewall for external hosts
otelcol.receiver.otlp "otel" {
grpc {
endpoint = "127.0.0.1:4317"
endpoint = "[::]:4317"
}
http {
endpoint = "127.0.0.1:4318"
endpoint = "[::]:4318"
}
output {
metrics = [otelcol.processor.batch.otel.input]
Expand Down

0 comments on commit 5e462fe

Please sign in to comment.