packages feed

eventlog-live-influxdb-0.2.0.1: eventlog-live-influxdb.cabal

cabal-version:   3.0
name:            eventlog-live-influxdb
version:         0.2.0.1
synopsis:        Stream eventlog data into InfluxDB.
description:
  This executable supports live streaming of eventlog data into
  [InfluxDB](https://www.influxdata.com) version 1.8.

  > Usage: eventlog-live-influxdb (--eventlog-stdin | --eventlog-file FILE |
  >                                 --eventlog-socket SOCKET)
  >                               [--eventlog-socket-timeout NUM]
  >                               [--eventlog-socket-exponent NUM]
  >                               [--batch-interval NUM] [--eventlog-log-file FILE]
  >                               [-h Tcmdyrbi]
  >                               [-v|--verbosity quiet|error|warning|info|debug|0-4]
  >                               [--influxdb-username USERNAME
  >                                 --influxdb-password PASSWORD]
  >                               [--influxdb-retention-policy RETENTION_POLICY]
  >                               [--influxdb-host HOST] [--influxdb-port HOST]
  >                               [--influxdb-ssl] --influxdb-database DATABASE
  >
  > Available options:
  >   --eventlog-stdin         Read the eventlog from stdin.
  >   --eventlog-file FILE     Read the eventlog from a file.
  >   --eventlog-socket SOCKET Read the eventlog from a Unix socket.
  >   --eventlog-socket-timeout NUM
  >                            Eventlog socket connection retry timeout in
  >                            microseconds.
  >   --eventlog-socket-exponent NUM
  >                            Eventlog socket connection retry timeout exponent.
  >   --batch-interval NUM     Batch interval in milliseconds.
  >   --eventlog-log-file FILE Use file to log binary eventlog data.
  >   -h Tcmdyrbi              Heap profile breakdown.
  >   -v,--verbosity quiet|error|warning|info|debug|0-4
  >                            The verbosity threshold for logging.
  >   --influxdb-username USERNAME
  >                            InfluxDB username
  >   --influxdb-password PASSWORD
  >                            InfluxDB password
  >   --influxdb-retention-policy RETENTION_POLICY
  >                            InfluxDB retention policy
  >   --influxdb-host HOST     InfluxDB server host
  >   --influxdb-port HOST     InfluxDB server host
  >   --influxdb-ssl           InfluxDB server SSL
  >   --influxdb-database DATABASE
  >                            InfluxDB database name
  >   --help                   Show this help text.
  >   --version                Show version information

license:         BSD-3-Clause
license-file:    LICENSE
author:          Wen Kokke
maintainer:      wen@well-typed.com
copyright:       (c) 2025 Well-Typed
build-type:      Simple
category:        Debug, Monitoring, System
extra-doc-files: CHANGELOG.md
tested-with:
  GHC ==9.2.8
   || ==9.4.8
   || ==9.6.7
   || ==9.8.4
   || ==9.10.2
   || ==9.12.2

source-repository head
  type:     git
  location: https://github.com/well-typed/eventlog-live.git
  subdir:   eventlog-live-influxdb

common language
  ghc-options:
    -Wall -Wcompat -Widentities -Wprepositive-qualified-module
    -Wredundant-constraints -Wunticked-promoted-constructors
    -Wunused-packages

  default-language:   Haskell2010
  default-extensions:
    BangPatterns
    DataKinds
    DeriveFoldable
    DeriveFunctor
    DeriveTraversable
    DerivingStrategies
    DuplicateRecordFields
    FlexibleContexts
    FlexibleInstances
    GADTs
    GeneralizedNewtypeDeriving
    ImportQualifiedPost
    InstanceSigs
    KindSignatures
    LambdaCase
    MultiParamTypeClasses
    NoFieldSelectors
    NumericUnderscores
    OverloadedRecordDot
    RankNTypes
    RecordWildCards
    ScopedTypeVariables
    TupleSections
    TypeApplications
    TypeFamilies

library
  import:          language
  hs-source-dirs:  src
  exposed-modules: GHC.Eventlog.Live.InfluxDB
  other-modules:   Paths_eventlog_live_influxdb
  autogen-modules: Paths_eventlog_live_influxdb
  build-depends:
    , base                  >=4.16  && <4.22
    , clock                 >=0.8.4 && <0.9
    , containers            >=0.6   && <0.8
    , dlist                 >=1.0   && <1.1
    , eventlog-live         >=0.4   && <0.5
    , ghc-events            >=0.20  && <0.21
    , influxdb              >=1.9.3 && <1.10
    , lens-family           >=2.1.3 && <2.2
    , machines              >=0.7.4 && <0.8
    , optparse-applicative  >=0.18  && <0.20
    , text                  >=1.2   && <2.2

executable eventlog-live-influxdb
  import:         language
  main-is:        Main.hs
  hs-source-dirs: app
  build-depends:  eventlog-live-influxdb