Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jutaro committed May 6, 2024
1 parent 5e5ea72 commit ebcb6eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/backend-ekg/lobemo-backend-ekg.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.0
name: lobemo-backend-ekg
version: 0.1.0.3
version: 0.1.1.0
synopsis: provides a backend implementation to EKG
-- description:
homepage: https://github.com/input-output-hk/iohk-monitoring-framework
Expand Down
6 changes: 2 additions & 4 deletions plugins/backend-ekg/src/Cardano/BM/Backend/Prometheus.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@ spawnPrometheus ekg host port prometheusOutput = Async.async $
Counter c -> renderNamedValue sk (int64Dec c)
Gauge g -> renderNamedValue sk (int64Dec g)
Label l -> trace ("renderSamples " <> T.unpack l) $
if isFloat l
then renderNamedValue sk (byteString $ encodeUtf8 l)
else if "{" `T.isPrefixOf` l
if "{" `T.isPrefixOf` l
then renderLabel sk l
else trace "renderSamples empty" mempty
else renderNamedValue sk (byteString $ encodeUtf8 l)
_ -> mempty
| (sk,sv) <- samples ]
Expand Down

0 comments on commit ebcb6eb

Please sign in to comment.