-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(apps): export logs to open telemetry endpoint (#1617)
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Notes: * Added loki as a way to view logs in OTLP format locally * Confirmed logs are exported * Continue using Serilog, using Serilog open telemetry sink if open telemetry configuration is found, both for bootstrap logger and final logger. Will use Console exporter if configuration is not found * Moved configuration of open telemetry from the aspnet package to the respective services that use them directly. * Removed fusioncache tracing for `Service` ## Related Issue(s) - #1616 ## Verification - [ ] **Your** code builds clean without any errors or warnings - [ ] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable) --------- Co-authored-by: Magnus Sandgren <5285192+MagnusSandgren@users.noreply.github.com> Co-authored-by: Knut Haug <knut.espen.haug@digdir.no>
- Loading branch information
1 parent
c9cd6a7
commit 1a71763
Showing
17 changed files
with
692 additions
and
237 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
auth_enabled: false | ||
|
||
server: | ||
http_listen_port: 3100 | ||
|
||
common: | ||
path_prefix: /tmp/loki | ||
|
||
compactor: | ||
working_directory: /tmp/loki/compactor | ||
compaction_interval: 10m | ||
|
||
ingester: | ||
lifecycler: | ||
address: 127.0.0.1 | ||
ring: | ||
kvstore: | ||
store: inmemory | ||
replication_factor: 1 | ||
final_sleep: 0s | ||
chunk_idle_period: 5m | ||
chunk_retain_period: 30s | ||
|
||
schema_config: | ||
configs: | ||
- from: 2020-10-24 | ||
store: tsdb | ||
object_store: filesystem | ||
schema: v13 | ||
index: | ||
prefix: index_ | ||
period: 24h | ||
|
||
storage_config: | ||
tsdb_shipper: | ||
active_index_directory: /tmp/loki/tsdb-index | ||
cache_location: /tmp/loki/tsdb-cache | ||
cache_ttl: 24h | ||
filesystem: | ||
directory: /tmp/loki/chunks | ||
|
||
limits_config: | ||
reject_old_samples: true | ||
reject_old_samples_max_age: 168h | ||
allow_structured_metadata: true |
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
Oops, something went wrong.