File tree 2 files changed +7
-9
lines changed
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ flake: {
464
464
++ optionals ( cfgSvc ? cardano-node && cfgSvc . cardano-node . enable )
465
465
( map ( i : let
466
466
metrics_path =
467
- if cfgSvc . cardano-node . useLegacyTracing
467
+ if cfgSvc . cardano-node . useLegacyTracing || ( ! cfgSvc . cardano-node . useLegacyTracing && cfgSvc . cardano-node . ngTracer )
468
468
then "/metrics"
469
469
else "/${ ( cfgSvc . cardano-node . extraNodeInstanceConfig i ) . TraceOptionNodeName } " ;
470
470
@@ -475,8 +475,10 @@ flake: {
475
475
476
476
targets =
477
477
if cfgSvc . cardano-node . useLegacyTracing
478
- then [ "${ hostAddr } :${ toString ( cardanoNodePrometheusExporterPort + i ) } " ]
479
- else [ "${ hostAddr } :${ toString cardanoNodePrometheusExporterPort } " ] ;
478
+ then "${ hostAddr } :${ toString ( cardanoNodePrometheusExporterPort + i ) } "
479
+ else if cfgSvc . cardano-node . ngTracer
480
+ then "${ hostAddr } :${ toString ( cardanoNodePrometheusExporterPort + i ) } "
481
+ else "${ hostAddr } :${ toString cardanoNodePrometheusExporterPort } " ;
480
482
in {
481
483
inherit metrics_path ;
482
484
job_name = "integrations/${ serviceName i } " ;
Original file line number Diff line number Diff line change @@ -302,9 +302,7 @@ flake @ {moduleWithSystem, ...}: {
302
302
cardanoNode = optionals ( cfgSvc ? cardano-node && cfgSvc . cardano-node . enable ) ( map (
303
303
i : let
304
304
metricsPath =
305
- # Use once PrometheusSimple is available in >= node 10.3
306
- # if cfgSvc.cardano-node.useLegacyTracing || (!cfgSvc.cardano-node.useLegacyTracing && cfgSvc.cardano-node.ngTracer)
307
- if cfgSvc . cardano-node . useLegacyTracing
305
+ if cfgSvc . cardano-node . useLegacyTracing || ( ! cfgSvc . cardano-node . useLegacyTracing && cfgSvc . cardano-node . ngTracer )
308
306
then "/metrics"
309
307
else "/${ ( cfgSvc . cardano-node . extraNodeInstanceConfig i ) . TraceOptionNodeName } " ;
310
308
@@ -316,10 +314,8 @@ flake @ {moduleWithSystem, ...}: {
316
314
target =
317
315
if cfgSvc . cardano-node . useLegacyTracing
318
316
then "${ hostAddr } :${ toString ( cardanoNodePrometheusExporterPort + i ) } "
319
- # Use once PrometheusSimple is available in >= node 10.3
320
- # else "${hostAddr}:${toString cardanoNodePrometheusExporterPort}";
321
317
else if cfgSvc . cardano-node . ngTracer
322
- then "${ hostAddr } :${ toString 12808 } "
318
+ then "${ hostAddr } :${ toString ( cardanoNodePrometheusExporterPort + i ) } "
323
319
else "${ hostAddr } :${ toString cardanoNodePrometheusExporterPort } " ;
324
320
325
321
toUnderscore = s : replaceStrings [ "-" ] [ "_" ] s ;
You can’t perform that action at this time.
0 commit comments