We have a Neo4J cluster and we are using LLD to parse prometheus metrics.
When we use LLD wich have a label, this works well but with a "keyword" in the metric it does not.
This works: last_failed_run{job=~".*"} but with a regex like; last_job_~".*"_failed it does not.
I cannot find out how we could do this in the documentation.
This is an example of the metric we want to parse:
# HELP neo4j_database_mydb_cluster_raft_is_leader Generated from Dropwizard metric import (metric=neo4j.database.mydb.cluster.raft.is_leader , type=com.neo4j.metrics.source.causalclustering.Raf tMetrics$$Lambda$2667/0x000071a868d35140)
# TYPE neo4j_database_mydb_cluster_raft_is_leader gauge
neo4j_database_mydb_cluster_raft_is_leader 0.0
neo4j_database_mydb_cluster_raft_is_leader 0.0, “mydb” is the database.
How can i use a regular expresion to get mydb as a macro e.g. {#DATABASE} ?
Any tips on Neo4J monitoring are much appreciated.
We use Zabbix 7.0.x
Thanks : P
When we use LLD wich have a label, this works well but with a "keyword" in the metric it does not.
This works: last_failed_run{job=~".*"} but with a regex like; last_job_~".*"_failed it does not.
I cannot find out how we could do this in the documentation.
This is an example of the metric we want to parse:
# HELP neo4j_database_mydb_cluster_raft_is_leader Generated from Dropwizard metric import (metric=neo4j.database.mydb.cluster.raft.is_leader , type=com.neo4j.metrics.source.causalclustering.Raf tMetrics$$Lambda$2667/0x000071a868d35140)
# TYPE neo4j_database_mydb_cluster_raft_is_leader gauge
neo4j_database_mydb_cluster_raft_is_leader 0.0
neo4j_database_mydb_cluster_raft_is_leader 0.0, “mydb” is the database.
How can i use a regular expresion to get mydb as a macro e.g. {#DATABASE} ?
Any tips on Neo4J monitoring are much appreciated.
We use Zabbix 7.0.x
Thanks : P
Comment