carlosedp / cluster-monitoring

Cluster monitoring stack for clusters based on Prometheus Operator
MIT License
740 stars 200 forks source link

Fixed broken expression concatenation #22

Closed phalski closed 5 years ago

phalski commented 5 years ago

Tried to run make with armExporter exporter module enabled.

Build broke with

RUNTIME ERROR: Unexpected type object, expected number
    utils.libsonnet:53:13-43    thunk <c> from <function <anonymous>>
    utils.libsonnet:54:7-8  function <anonymous>
    arm_exporter.jsonnet:(22:7)-(31:15) object <anonymous>
    main.jsonnet:34:47-68   object <anonymous>
    During manifestation

and

RUNTIME ERROR: Unexpected type object, expected number
    utils.libsonnet:63:7-94 function <anonymous>
    arm_exporter.jsonnet:34:7-109   object <anonymous>
    main.jsonnet:34:47-68   object <anonymous>
    During manifestation

due to broken expression concatenation. This PR fixes this.

carlosedp commented 5 years ago

Thanks!