I have a requirement to add certain labels to metric, so grafana can filter based on its value. I am wondering if there is a way to do it in the ServiceMonitor, so that I dont need to change the code in my springboot project.
Can ServiceMonitor add labels to the metric?
2k Views Asked by Tomas Wen At
1
There are 1 best solutions below
Related Questions in PROMETHEUS
- Using Amazon managed Prometheus to get EC2 metrics data in Grafana
- How do we configure prometheus server to scrape metrics from a pod with Istio sidecar proxy?
- Concept of _sum in prometheus histogram
- Telegraf input.exec not working with json
- Concept of process_cpu_seconds_total in prometheus
- Micrometer - Custom Gauge Metric Not Working
- wrong timestamp in promql
- Data visualization on Grafana dashboard
- Micrometer & Prometheus with Java subprocesses that can't expose HTTP
- How can I collect metrics from a Node.js application running in a Kubernetes cluster to monitor HTTP requests with status codes 5xx or 4xx?
- How do you filter a Prometheus metric based on the existence of a label in another metric?
- calculating availability of node using SysUpTime.0 variable collcted in prometheus and exposing to grafana
- Thanos Querier not showing metrics sent to hub Prometheus via remote write
- How to have multiple rules file on Loki (Kubernetes)?
- Monitoring Thread pool metrics through promethues
Related Questions in PROMETHEUS-OPERATOR
- Grafana Alerting Acting Weird
- Google managed prometheus breaks when Application started with TLS in GKE
- How to configure thanos-sidecar of prometheus -k8s through cluster-monitoring-operator in openshift-monitoring namespace of OKD 4.14
- Is there a way to set up alert with Prometheus storage retention size
- prometheus-community/helm-charts/prometheus Helm chart in agent mode: Configuring "rule_files"
- kube-prometheus-stack. Why doesn't Prometheus see external node-exporters?
- How to query Kubernetes node CPU levels
- thanos query how to connect a TLS endpoint and a noTLS endpoint at the same time
- Prometheus query to visualize "Cluster Node CPU Utilization" - many-to-many matching not allowed
- How can I get high availability for an AlertManager that is behind Google Private Service Connect on GKE?
- Why can't prometheus blackbox exporter verify a tls endpoints self signed certificate? Details below
- Trouble with Prometheus relabel_configs Regex for Matching Specific URL Patterns
- Restricting dashboard access with admin through Prometheus operator
- Agnet mode Prometheus shard duplicate remote wirte error
- Set prometheus metric to return datetime instead of a float
Related Questions in OPENTSDB
- How and when to create non-unique tsdb hypertable two item indexes?
- promQL opetrate two metric with same labels, but different label-val combiantions,
- Can someone explain me why I see the extra points in Prometheus when I create tsdb programatically?
- com/google/protobuf/AbstractParser NoClassFoundException On OpenTSDB Starting
- ResourceAccessException : I/O error on GET request (request URL works fine when hit from POSTMAN or Chrome but not from Eclipse)
- What IS the opentsdb syntax?
- How to write multiple OpenTSDB data points into CnosDB?
- Not able to increase max_connection param in tsdb (postgres)
- Prometheus short term label usage
- How Grafana Geomap works with Opentsdb?
- Failed to create a partitioned table using TSDB engine in DolphinDB: The sort keys must be specified for TSDB engine
- Read files exported by Prometheus
- CnosDB compare with other Database
- Is there any limit on number of tags we can create in a single database in CnosDB?
- Can ServiceMonitor add labels to the metric?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
My final solution is adding a metricRelabelings under endpoints in ServiceMonitor.