Comments (5)
Have you considered using metrics namespaces (spark.metrics.namespace
)?
If you have a PR please let me know and we'll review it.
from spark-metrics.
I am interested whenever my spark app crash it restart with new job name timestamp appended. I don`t know how i can clean up stale groups from pushgateway.
from spark-metrics.
@dahiyahimanshu pushgateway doesn't support adding a TTL to metrics (see prometheus/pushgateway#117) thus it keeps the received metrics until pushgateway is either restarted or not needed metrics are removed manually. Metrics can be removed either through the UI or using curl (see https://github.com/prometheus/pushgateway for examples)
from spark-metrics.
I think overriding just spark.metrics.namespace
(job name) wont help here. I think common groupingKey is also required. However it is not possible to override it now:
val groupingKey: Map[String, String] = (role, executorId) match {
case ("driver", _) =>
labelsMap match {
case Some(m) => Map("role" -> role, "app_name" -> appName, "instance" -> instance) ++ m
case _ => Map("role" -> role, "app_name" -> appName, "instance" -> instance)
}
case ("executor", Some(id)) =>
labelsMap match {
case Some(m) =>
Map ("role" -> role,
"number" -> id,
"app_name" -> appName,
"instance" -> instance) ++ m
case _ =>
Map ("role" -> role,
"number" -> id,
"app_name" -> appName,
"instance" -> instance)
}
case _ => Map("role" -> role)
}
from spark-metrics.
I think this article touch that topic - https://www.robustperception.io/common-pitfalls-when-using-the-pushgateway
This is particularly evident with metrics containing an instance label (which should not be going to the Pushgateway in the first place, as they are not service-level).
from spark-metrics.
Related Issues (20)
- Push dropwizard metrics error, PushGatewayWithTimestamp: text format parsing error in line 64: second HELP line for metric name "HiveExternalCatalog_fileCacheHits" HOT 18
- Not seeing executor metrics, only driver HOT 13
- upgrade prometheus simpleclient to version 0.8.1
- Q: Expose AccumulatorSource HOT 2
- Metrics namespace HOT 11
- Pushgateway Read timed out HOT 2
- Want to understand that this spark matrics repo will work with prometheus in Hadoop cluster ? HOT 4
- Release Spark provided fix to maven HOT 2
- No Metrics From Spark Executors (Classes are being instantiated) HOT 10
- Metrics name pre-processing by custom Prometheus sink is working for only one component(driver/executor/applicationMaster) HOT 10
- Filter metrics HOT 10
- Metric Name RegEx Replacement doesn't work with JMX HOT 2
- Spark Metrics Stop Pushing After Pushgateway Restarts
- Configure sink to stop sending job as label/group-key HOT 3
- Metrics filter doesn't work
- Add remote_write to PrometheusSink
- Security Policy violation Binary Artifacts HOT 315
- Security Policy violation Branch Protection HOT 314
- Prometheus Sink is not working with SparkPi
- VictoriaMetrics HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spark-metrics.