sameei / elasticreporter.old Goto Github PK
View Code? Open in Web Editor NEWA customized reporter to push Apache Flink metrics to ElasticSearch
License: MIT License
A customized reporter to push Apache Flink metrics to ElasticSearch
License: MIT License
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
}
MetricGroups have a set of variables! define a Select base on Variable Availability and Inject variables in report output.
By this you should be able to report metrics per job-names
ES error: Limit of total fields [1000] in index [stageflinkd1-jobmanager-2018-6] has been exceeded
It's good to report all available variables in to elasticsearch: , <task_id>, <operator_id>, , ....
....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
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"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.