No description
Find a file
2026-02-27 18:30:15 +03:00
.github/workflows *: Bump min Go version to 1.25 2026-02-24 15:17:33 +04:00
cmd/neo-exporter app: Shutdown correctly if context has been cancelled during init 2026-02-25 12:19:38 +04:00
config *: Wait until pool connected 2025-09-23 15:19:38 +04:00
pkg pool: Start app with only one alive connection 2025-11-11 21:26:38 +04:00
.dockerignore [#48] Add EOL at every EOF 2021-10-20 11:58:19 +03:00
.gitignore workflows: reuse org-wide linter 2024-09-10 18:51:48 +03:00
CHANGELOG.md CHANGELOG: release 0.15.2 2026-02-25 14:36:23 +03:00
Dockerfile *: Bump min Go version to 1.25 2026-02-24 15:17:33 +04:00
go.mod go.mod: Upgraded golang.org/x/term v0.37.0 => v0.40.0 2026-02-24 15:17:36 +04:00
go.sum go.mod: Upgraded golang.org/x/term v0.37.0 => v0.40.0 2026-02-24 15:17:36 +04:00
LICENSE LICENSE: add it 2024-02-01 16:34:15 +03:00
Makefile Makefile: add modernize target 2026-02-27 18:20:45 +03:00
README.md close #110, remove outdated config.env and docker 2024-03-06 23:24:50 +03:00
RELEASE.md RELEASE: fix according to workflow changes 2024-03-06 23:01:06 +03:00
VERSION CHANGELOG: release 0.15.2 2026-02-25 14:36:23 +03:00

Neo Exporter

Export various data from Neo chains as Prometheus metrics. Special support is provided for NeoFS contracts (deployed into FS chains). Metrics are updated regularly and can then be scraped/stored/analysed/visualized in various ways (VictoriaMetrics/Grafana).

Available options

See config examples for all available options.

You can provide a config for neo-exporter:

$ neo-exporter --config config.yaml

Also, you can provide all options using env variables.

nep17tracker

Allows to monitor native nep17 contracts and accounts.

nep17:
    # Native GAS contract. Possible "contract" names are Gas, GAS, gas
    - contract: "Gas" 
      label: "Gas" # Human readable contract label
      totalSupply: true # allows to return the total token supply currently available.
      balanceOf: # account list can be set via two formats in any combination
        - 3c3f4b84773ef0141576e48c3ff60e5078235891
    # Native Neo contract. Possible "contract" names are Neo, NEO, neo
    - contract: "Neo"
      label: "Neo"
      balanceOf:
        - NSPCCpw8YmgNDYWiBfXJHRfz38NDjv6WW3
        - NSPCCa2T6nc2kYcgWC2k68boyGgc9YdKsj

Any custom nep17 contract can be configured:

nep17:
    # set-up contract hash
    - contract: "3c3f4b84773ef0141576e48c3ff60e5078235891"
      label: "SomeContractName"
      balanceOf:
        - NSPCCpw8YmgNDYWiBfXJHRfz38NDjv6WW3
        - NSPCCa2T6nc2kYcgWC2k68boyGgc9YdKsj

NeoFS balance contract can be configured with next config:

nep17:
    - contract: "balance"
      label: "neofs_balance"
      totalSupply: true
      balanceOf:
        - NagentXDvR5c3pQ4gxXpqZjMoUpKVCUMmB

If contract has NNS record, you may configure tracker to monitor it. Just use NNS name in contract:

nep17:
    - contract: "<contract_nns_name>"
      label: "<contract_name>"
      balanceOf:
        - NagentXDvR5c3pQ4gxXpqZjMoUpKVCUMmB