Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ Additional environment variables can be set to adjust performance.
## TagDB
Graphite stores tag information in a separate tag database (TagDB). Please check [tags documentation](https://graphite.readthedocs.io/en/latest/tags.html) for details.

* CARBON_DISABLE_TAGS: (false) if set to 1 or true will disable TagDB on carbon-cache.
* GRAPHITE_TAGDB: ('graphite.tags.localdatabase.LocalDatabaseTagDB') TagDB is a pluggable store, by default it uses the local SQLite database.
* REDIS_TAGDB: (false) if set to true will use local Redis instance to store tags.
* REDIS_TAGDB: (false) if set to 1 or true will use local Redis instance to store tags.
* GRAPHITE_TAGDB_CACHE_DURATION: (60) Time to cache seriesByTag results.
* GRAPHITE_TAGDB_AUTOCOMPLETE_LIMIT: (100) Autocomplete default result limit.
* GRAPHITE_TAGDB_REDIS_HOST: ('localhost') Redis TagDB host
Expand Down
5 changes: 5 additions & 0 deletions conf/etc/service/carbon/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
# disable if go-carbon enabled
[[ -n "${GOCARBON}" ]] && exit 1

if [ -n "${CARBON_DISABLE_TAGS}" ]; then
# trying to disable tags in carbon.conf file
sed -i 's/ENABLE_TAGS = True/ENABLE_TAGS = False/g' /opt/graphite/conf/carbon.conf
fi

exec python3 /opt/graphite/bin/carbon-cache.py start --debug 2>&1
2 changes: 1 addition & 1 deletion conf/opt/graphite/conf/carbon.conf
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ CARBON_METRIC_INTERVAL = 10
GRAPHITE_URL = http://127.0.0.1:8080

# Tag support, when enabled carbon will make HTTP calls to graphite-web to update the tag index
# ENABLE_TAGS = True
ENABLE_TAGS = True

# Tag update interval, this specifies how frequently updates to existing series will trigger
# an update to the tag index, the default setting is once every 100 updates
Expand Down