Browse Source

updates to docs/specification/configuration.md after rebase

pull/1737/head
Anton Kaliaev 7 years ago
parent
commit
8c1ca9d64a
No known key found for this signature in database GPG Key ID: 7B6881D965918214
2 changed files with 18 additions and 7 deletions
  1. +2
    -2
      config/config.go
  2. +16
    -5
      docs/specification/configuration.md

+ 2
- 2
config/config.go View File

@ -545,8 +545,8 @@ type TxIndexConfig struct {
// What indexer to use for transactions // What indexer to use for transactions
// //
// Options: // Options:
// 1) "null" (default)
// 2) "kv" - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
// 1) "null"
// 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
Indexer string `mapstructure:"indexer"` Indexer string `mapstructure:"indexer"`
// Comma-separated list of tags to index (by default the only tag is tx hash) // Comma-separated list of tags to index (by default the only tag is tx hash)


+ 16
- 5
docs/specification/configuration.md View File

@ -171,19 +171,30 @@ peer_query_maj23_sleep_duration = 2000
# What indexer to use for transactions # What indexer to use for transactions
# #
# Options: # Options:
# 1) "null" (default)
# 2) "kv" - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
indexer = "{{ .TxIndex.Indexer }}"
# 1) "null"
# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
indexer = "kv"
# Comma-separated list of tags to index (by default the only tag is tx hash) # Comma-separated list of tags to index (by default the only tag is tx hash)
# #
# It's recommended to index only a subset of tags due to possible memory # It's recommended to index only a subset of tags due to possible memory
# bloat. This is, of course, depends on the indexer's DB and the volume of # bloat. This is, of course, depends on the indexer's DB and the volume of
# transactions. # transactions.
index_tags = "{{ .TxIndex.IndexTags }}"
index_tags = ""
# When set to true, tells indexer to index all tags. Note this may be not # When set to true, tells indexer to index all tags. Note this may be not
# desirable (see the comment above). IndexTags has a precedence over # desirable (see the comment above). IndexTags has a precedence over
# IndexAllTags (i.e. when given both, IndexTags will be indexed). # IndexAllTags (i.e. when given both, IndexTags will be indexed).
index_all_tags = {{ .TxIndex.IndexAllTags }}
index_all_tags = false
##### instrumentation configuration options #####
[instrumentation]
# When true, Prometheus metrics are served under /metrics on
# PrometheusListenAddr.
# Check out the documentation for the list of available metrics.
prometheus = false
# Address to listen for Prometheus collector(s) connections
prometheus_listen_addr = ":26660"
``` ```

Loading…
Cancel
Save