forked from grafana/agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add tail sampling in tempo pipelines * Add load balancing for traces when tail sampling Implements load balancing of spans by trace ID between agent instances for tail sampling * Lint things * Config recevier listening port * Add sampling in scraping service compose example * Don't load balance when it's not needed Many times users will have single instance deployements that do not require to load balance spans. Load balancing block is optional * Config reference for tail sampling * Update CHANGELOG * Fix panic * Move exporter to its own block * Make tail-sampling work in k3d example * Fix image name * Lower collector log level * Remove unnecessary pvcs
- Loading branch information
Showing
49 changed files
with
8,661 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
receivers: { | ||
otlp: { | ||
protocols: { | ||
grpc: null, | ||
}, | ||
}, | ||
}, | ||
|
||
exporters: { | ||
logging: { | ||
loglevel: "info", | ||
}, | ||
}, | ||
|
||
service: { | ||
pipelines: { | ||
traces: { | ||
receivers: [ | ||
"otlp", | ||
], | ||
exporters: [ | ||
"logging", | ||
], | ||
}, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
local k = import 'ksonnet-util/kausal.libsonnet'; | ||
|
||
local configMap = k.core.v1.configMap; | ||
local container = k.core.v1.container; | ||
local containerPort = k.core.v1.containerPort; | ||
local deployment = k.apps.v1.deployment; | ||
local pvc = k.core.v1.persistentVolumeClaim; | ||
local service = k.core.v1.service; | ||
local volumeMount = k.core.v1.volumeMount; | ||
local volume = k.core.v1.volume; | ||
|
||
{ | ||
new(namespace=''):: { | ||
local this = self, | ||
|
||
_images:: { | ||
collector: 'otel/opentelemetry-collector:0.9.0', | ||
}, | ||
_config:: (import './collector-config.libsonnet'), | ||
|
||
configMap: | ||
configMap.new('collector') + | ||
configMap.mixin.metadata.withNamespace(namespace) + | ||
configMap.withData({ | ||
'config.yaml': k.util.manifestYaml(this._config), | ||
}), | ||
|
||
container:: | ||
container.new('collector', this._images.collector) + | ||
container.withPorts([ | ||
containerPort.newNamed(name='grpc', containerPort=55680), | ||
]) + | ||
container.withArgsMixin( | ||
'--config=/etc/collector/config.yaml', | ||
), | ||
|
||
deployment: | ||
deployment.new('collector', 1, [self.container]) + | ||
deployment.mixin.metadata.withNamespace(namespace) + | ||
k.util.configMapVolumeMount(this.configMap, '/etc/collector'), | ||
|
||
|
||
service: | ||
k.util.serviceFor(self.deployment) + | ||
service.mixin.metadata.withNamespace(namespace), | ||
}, | ||
} |
Oops, something went wrong.