GithubHelp home page GithubHelp logo

sameei / elasticreporter.old Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 350 KB

A customized reporter to push Apache Flink metrics to ElasticSearch

License: MIT License

Scala 100.00%
elasticsearch flink-metrics

elasticreporter.old's People

Contributors

sameei avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

elasticreporter.old's Issues

Handle NonDigit Numeric Values!

Cosider: 'Infinity' It's a numeric value in most programing languages but ES is sensitive to parse this values,
for example in a case of sending a Json containing this: "KafkaConsumer.records-lag-max": -Infinity to ES,
it responds with:

{
    "error":{"root_cause":[{"type":"mapper_parsin$_exception","reason":"failed to parse"}],
    "type":"mapper_parsing_exception",
    "reason":"failed to parse","caused_by":{
        "type":"json_pa$se_exception",
        "reason":"Non-standard token '-Infinity': enable JsonParser.Feature.ALLOW_NON_NUMERIC_NUMBERS to allow\n at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@721e357a; line: 1, column: 2042]"
    }},"status":400
}

Prevet Fields Limit Error

ES error: Limit of total fields [1000] in index [stageflinkd1-jobmanager-2018-6] has been exceeded

Improve Logging

  • Configurable name for loggers
  • Loggers for FilterBy, GroupBy, and NameBy
  • Clear and Document Loggers status and output!

A new scope based fileter: after-scope

....filter.drop-left-to-scope: developerdefined
host.jobmanger.taskid.operatorid......prod-apps.nathan.forward.log.direct
host.jobmanger.taskid.operatorid......prod-apps.nathan.forward.log.indirect
host.jobmanger.taskid.operatorid......prod-apps.nathan.forward.log.duplicate
host.jobmanger.taskid.operatorid......prod-apps.nathan.forward.log.private
host.jobmanger.taskid.operatorid......prod-apps.nathan.forward.uptime.fedora

.jobmanager.<task_id>.<job_name>.....developerdefined

Write General Reporters for Flink: Group & Single

flink.reporter.Groups
index: "<job_name>---<day_of_month>"
doc: "<operator_id>-<subtask_index>-"
group-by: "<job_name>.<operator_name>.<subtask_index>"
filter-by.required-vars: "<job_name>,<operator_id>,<operator_name>,<subtask_id>"
filter-by.scope: ".jobmanager"

flink.reporter.SingleDoc
index: "<job_name>---<day_of_month>"
doc: "<operator_id>-<subtask_index>-"
group-by: "<job_name>.<operator_name>.<subtask_index>"
filter-by.required-vars: "<job_name>,<operator_id>,<operator_name>,<subtask_id>"
filter-by.scope: ".jobmanager"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.