File tree 2 files changed +58
-0
lines changed
2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 76
76
defaultLogConfig = import ./generic-log-config.nix ;
77
77
defaultLogConfigLegacy = import ./generic-log-config-legacy.nix ;
78
78
defaultExplorerLogConfig = import ./explorer-log-config.nix ;
79
+ defaultTracerConfig = import ./generic-tracer-config.nix ;
79
80
80
81
mkExplorerConfig = name : nodeConfig : filterAttrs ( k : v : v != null ) {
81
82
NetworkName = name ;
128
129
nodeConfigLegacy = defaultLogConfigLegacy // env . networkConfig // ( env . extraTracerConfigLegacy or { } ) ;
129
130
nodeConfigBp = mergeTraceOpts ( defaultLogConfig // env . networkConfigBp ) ( env . extraTracerConfig or { } ) ;
130
131
nodeConfigBpLegacy = defaultLogConfigLegacy // env . networkConfigBp // ( env . extraTracerConfigLegacy or { } ) ;
132
+ tracerConfig = defaultTracerConfig // { inherit ( fromJSON ( readFile ./${ name } /shelley-genesis.json ) ) networkMagic ; } ;
131
133
consensusProtocol = env . networkConfig . Protocol ;
132
134
submitApiConfig = mkSubmitApiConfig name environments . ${ name } . nodeConfig ;
133
135
dbSyncConfig =
319
321
<a class="button is-primary" href="${ env } -submit-api-config.json">submit-api config</a>
320
322
<a class="button is-primary" href="${ env } -mithril-signer-config.json">mithril-signer config</a>
321
323
<a class="button is-primary" href="rest-config.json">rest config</a>
324
+ <a class="button is-primary" href="${ env } -tracer-config.json">tracer config</a>
322
325
</div>
323
326
</td>
324
327
</tr>
379
382
${ jq } /bin/jq . < ${ toFile "${ env } -db-sync-config.json" ( toJSON ( value . dbSyncConfig // { NodeConfigFile = "${ env } -config.json" ; } ) ) } > $out/${ env } -db-sync-config.json
380
383
${ jq } /bin/jq . < ${ toFile "${ env } -submit-api-config.json" ( toJSON value . submitApiConfig ) } > $out/${ env } -submit-api-config.json
381
384
${ jq } /bin/jq . < ${ toFile "${ env } -mithril-signer-config.json" ( toJSON value . mithrilSignerConfig ) } > $out/${ env } -mithril-signer-config.json
385
+ ${ jq } /bin/jq . < ${ toFile "${ env } -tracer-config.json" ( toJSON value . tracerConfig ) } > $out/${ env } -tracer-config.json
382
386
${ jq } /bin/jq . < ${ mkTopology value } > $out/${ env } -topology.json
383
387
''
384
388
) environments )
393
397
defaultExplorerLogConfig
394
398
defaultLogConfig
395
399
defaultLogConfigLegacy
400
+ defaultTracerConfig
396
401
eachEnv
397
402
forEnvironments
398
403
forEnvironmentsCustom
Original file line number Diff line number Diff line change
1
+ {
2
+ # Cardano-tracer will use default values where parameters are set to null.
3
+ WarnRTViewMissing = null ;
4
+ ekgRequestFreq = null ;
5
+ ekgRequestFull = null ;
6
+
7
+ # Whether to enable an EKG http interface for process monitoring.
8
+ hasEKG = {
9
+ epHost = "127.0.0.1" ;
10
+ epPort = 12788 ;
11
+ } ;
12
+
13
+ # Whether to enable a prometheus export of metrics.
14
+ hasPrometheus = {
15
+ epHost = "127.0.0.1" ;
16
+ epPort = 12808 ;
17
+ } ;
18
+
19
+ loRequestNum = null ;
20
+
21
+ # Configure default logging
22
+ logging = [
23
+ {
24
+ logFormat = "ForHuman" ;
25
+ logMode = "FileMode" ;
26
+ logRoot = "/tmp/cardano-tracer" ;
27
+ }
28
+ ] ;
29
+
30
+ metricsHelp = null ;
31
+ metricsNoSuffix = null ;
32
+
33
+ # Configure default cardano-tracer operational mode
34
+ network = {
35
+ contents = "/tmp/cardano-tracer.socket" ;
36
+ tag = "AcceptAt" ;
37
+ } ;
38
+
39
+ # The network magic will need to be set per environment
40
+ # networkMagic = ... ;
41
+
42
+ resourceFreq = null ;
43
+
44
+ # Configure default rotation
45
+ rotation = {
46
+ rpFrequencySecs = 60 ;
47
+ rpKeepFilesNum = 14 ;
48
+ rpLogLimitBytes = 10000000 ;
49
+ rpMaxAgeHours = 24 ;
50
+ } ;
51
+
52
+ verbosity = null ;
53
+ }
You can’t perform that action at this time.
0 commit comments