Skip to content

Commit

Permalink
Merge pull request #16 from criteo/dashboard_config
Browse files Browse the repository at this point in the history
Add minimal config that is working with the dashboards
  • Loading branch information
deimosfr authored and Romain GÉRARD committed Jun 18, 2018
2 parents d714136 + 54b12a7 commit 3b98b2c
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions config_minimal_dashboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
host: localhost:7199
ssl: False
user:
password:
listenPort: 8080
blacklist:
# To profile the duration of jmx call you can start the program with the following options
# > java -Dorg.slf4j.simpleLogger.defaultLogLevel=trace -jar cassandra_exporter.jar config.yml --oneshot
#
# To get intuition of what is done by cassandra when something is called you can look in cassandra
# https://github.com/apache/cassandra/tree/trunk/src/java/org/apache/cassandra/metrics
# Please avoid to scrape frequently those calls that are iterating over all sstables

# Unaccessible metrics (not enough privilege)
- java:lang:memorypool:.*usagethreshold.*

# Leaf attributes not interesting for us but that are presents in many path
- .*:999thpercentile
- .*:95thpercentile
- .*:fifteenminuterate
- .*:fiveminuterate
- .*:durationunit
- .*:rateunit
- .*:stddev
- .*:meanrate
- .*:mean
- .*:min

# Path present in many metrics but uninterresting
- .*:viewlockacquiretime:.*
- .*:viewreadtime:.*
- .*:cas[a-z]+latency:.*
- .*:colupdatetimedeltahistogram:.*

# Mostly for RPC, do not scrap them
- org:apache:cassandra:db:.*

# columnfamily is an alias for Table metrics
# https://github.com/apache/cassandra/blob/8b3a60b9a7dbefeecc06bace617279612ec7092d/src/java/org/apache/cassandra/metrics/TableMetrics.java#L162
- org:apache:cassandra:metrics:columnfamily:.*

# Should we export metrics for system keyspaces/tables ?
- org:apache:cassandra:metrics:[^:]+:system[^:]*:.*

# Don't scrap us
- com:criteo:nosql:cassandra:exporter:.*

maxScrapFrequencyInSec:
50:
- org:apache:cassandra:metrics:cache:.*
- org:apache:cassandra:metrics:commitlog:.*
- org:apache:cassandra:metrics:connection:.*
- org:apache:cassandra:metrics:droppedmessage:.*
- org:apache:cassandra:metrics:streaming:.*
- org:apache:cassandra:metrics:table:.*
- org:apache:cassandra:metrics:threadpools:.*
- java:lang:.*

# Refresh those metrics only every hour as it is costly for cassandra to retrieve them
3600:
- .*:snapshotssize:.*
- .*:estimated.*
- .*:totaldiskspaceused:.*


0 comments on commit 3b98b2c

Please sign in to comment.