Skip to content

Commit

Permalink
PNDA-4545: Java Example application for Flink illustrating flink metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
GaneshManal committed Jul 15, 2018
1 parent a68c1fa commit c8755d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions salt/flink/templates/flink.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,14 @@ historyserver.archive.fs.refresh-interval: 10000
# Configure log directory path for PNDA flink
env.log.dir: /var/log/pnda/flink
python.dc.tmp.dir: {{ namenode }}/{{ python_tmp_dir }}/dc

# Expose Metric to an external system (Graphite) by configuring the Reporter
metrics.reporters: grph
metrics.reporter.grph.class: org.apache.flink.metrics.graphite.GraphiteReporter
metrics.reporter.grph.host: {{ graphite_node }}
metrics.reporter.grph.port: {{ graphite_port }}
metrics.reporter.grph.protocol: TCP
metrics.reporter.grph.prefix: flink

# Configure Metric reporting interval
metrics.reporter.grph.interval: 60 SECONDS
4 changes: 4 additions & 0 deletions salt/graphite-api/files/storage-schemas.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ retentions = 60:43200
pattern = ^spark\..*
retentions = {{ retentions }}

[flink]
pattern = ^flink\..*
retentions = 60:10080

[default]
pattern = .*
retentions = 60:1440

0 comments on commit c8755d3

Please sign in to comment.