kyra(NOT hardening): alloy -> opentelemetry collector
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
parent
6046ff3995
commit
26237ba6ef
1 changed files with 53 additions and 0 deletions
53
kyra/services/otelc.nix
Normal file
53
kyra/services/otelc.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
{lib, ...}: {
|
||||||
|
services = {
|
||||||
|
opentelemetry-collector = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
receivers = {
|
||||||
|
otlp = {
|
||||||
|
protocols = {
|
||||||
|
grpc = {
|
||||||
|
endpoint = "127.0.0.1:4317";
|
||||||
|
};
|
||||||
|
|
||||||
|
http = {
|
||||||
|
endpoint = "127.0.0.1:4318";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
exporters = {
|
||||||
|
otlp = {
|
||||||
|
endpoint = "http://100.109.123.164:4317";
|
||||||
|
tls = {
|
||||||
|
insecure = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
service = {
|
||||||
|
pipelines =
|
||||||
|
lib.genAttrs [
|
||||||
|
"traces"
|
||||||
|
"metrics"
|
||||||
|
"logs"
|
||||||
|
] (
|
||||||
|
_type: {
|
||||||
|
receivers = [
|
||||||
|
"otlp"
|
||||||
|
];
|
||||||
|
exporters = [
|
||||||
|
"otlp"
|
||||||
|
];
|
||||||
|
|
||||||
|
processors = [
|
||||||
|
"batch"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue