Export metrics works in docker neo4j with community edition?


(Rafaeldpietro) #1

Hi,

I followed these variables:

https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/

So, I tried run this:

docker run --publish=7474:7474 --publish=7687:7687 --volume=$HOME/neo4j/data:/data --env=NEO4J_metrics_enabled=true --env=NEO4J_metrics_graphite_enabled=true --env=NEO4J_metrics_graphite_server=graphite.local:2003 --env=NEO4J_metrics_prefix=Neo4j_1 neo4j:3.4.5

Active database: graph.db
Directories in use:
home: /var/lib/neo4j
config: /var/lib/neo4j/conf
logs: /var/lib/neo4j/logs
plugins: /var/lib/neo4j/plugins
import: /var/lib/neo4j/import
data: /var/lib/neo4j/data
certificates: /var/lib/neo4j/certificates
run: /var/lib/neo4j/run
Starting Neo4j.
2018-09-19 13:14:55.288+0000 WARN Unknown config option: causal_clustering.discovery_listen_address
2018-09-19 13:14:55.293+0000 WARN Unknown config option: metrics.graphite.server
2018-09-19 13:14:55.293+0000 WARN Unknown config option: metrics.enabled
2018-09-19 13:14:55.293+0000 WARN Unknown config option: causal_clustering.raft_advertised_address
2018-09-19 13:14:55.293+0000 WARN Unknown config option: causal_clustering.raft_listen_address
2018-09-19 13:14:55.293+0000 WARN Unknown config option: ha.host.coordination
2018-09-19 13:14:55.294+0000 WARN Unknown config option: metrics.graphite.enabled
2018-09-19 13:14:55.294+0000 WARN Unknown config option: causal_clustering.transaction_advertised_address
2018-09-19 13:14:55.294+0000 WARN Unknown config option: causal_clustering.discovery_advertised_address
2018-09-19 13:14:55.294+0000 WARN Unknown config option: ha.host.data
2018-09-19 13:14:55.294+0000 WARN Unknown config option: causal_clustering.transaction_listen_address
2018-09-19 13:14:55.294+0000 WARN Unknown config option: metrics.prefix
2018-09-19 13:14:55.326+0000 INFO ======== Neo4j 3.4.5 ========
2018-09-19 13:14:55.390+0000 INFO Starting...
2018-09-19 13:14:59.371+0000 INFO Bolt enabled on 0.0.0.0:7687.
2018-09-19 13:15:03.150+0000 INFO Started.
2018-09-19 13:15:04.907+0000 INFO Remote interface available at http://localhost:7474/

The export metrics does not works.

Where is wrong?

Env:
Docker version 18.06.0-ce, build 0ffa825
neo4j 3.4.5 Community
CentOS Linux release 7.5.1804 (Core)


(Stefan Armbruster) #2

Metrics logging is only available in enterprise edition, see https://neo4j.com/docs/operations-manual/current/monitoring/metrics/.