Feature request: support prometheus 3.0+
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- prometheus
- Domain
- observability-sre
Research direction
No source files or tests for the custom OpenTelemetry Collector are identified, and the issue says that component is not publicly available. Start by reproducing the scrape with Prometheus 3.4.0 and 2.55.1 and compare the emitted metric names; done means AST metrics are parsed and displayed correctly on Prometheus 3.0+.
Written by the indexing model from the issue text.
Description
Describe the bug
The custom OpenTelemetry Collector integrated with the Application Study Tool (AST) is observed to write metrics in an incorrect format (dots instead of underscores) when scraped by Prometheus versions newer than 2.x (specifically, versions 3.0 and above). This leads to metrics not being properly parsed and displayed in Prometheus's "Metrics Explorer."
To Reproduce
- Deploy the Application Study Tool stack, ensuring Prometheus version 3.0 or higher is used.
- Navigate to the Prometheus UI.
- Access the 'Metrics Explorer'.
- Observe that metrics originating from the AST's custom OpenTelemetry Collector are either missing or malformed, as depicted in the screenshot below.
Expected behavior
Metrics pushed by the custom OpenTelemetry Collector should be in a format compatible with Prometheus versions 3.0+, allowing for correct scraping, parsing, and display within the Prometheus UI and downstream monitoring tools.
Screenshots
Other informations
- Server OS: RHEL 8.10
- Container Orchestrator: Podman
- Prometheus Version: Tested with 3.4.0 and 2.55.1
Prometheus (v3.4.0) command flags:
spec:
containers:
- args:
- --config.file=/etc/prometheus/prometheus.yml
- --config.auto-reload-interval=30s
- --web.listen-address=0.0.0.0:9090
- --web.config.file=/etc/prometheus/web-config.yml
- --web.external-url=/prometheus
- --web.route-prefix=/prometheus
- --web.enable-lifecycle
- --web.enable-remote-write-receiver
- --web.remote-write-receiver.accepted-protobuf-messages=prometheus.WriteRequest
- --web.enable-otlp-receiver
- --web.console.libraries=/etc/prometheus/console_libraries
- --web.console.templates=/etc/prometheus/consoles
- --storage.tsdb.path=/prometheus/data/
- --storage.tsdb.retention.time=30d
- --enable-feature=auto-reload-config
- --enable-feature=otlp-native-delta-ingestion
- --log.level=debug
- --log.format=logfmt
- OTEL Custom collector: Tested with 0.9.3
Workaround
Currently, the issue can be mitigated by downgrading Prometheus to the latest 2.x stable release (2.55.1)
Additional Questions/Considerations
- The latest supported Prometheus version (v2.55.1) is approximately 7 months old. Are there any plans to update the Application Study Tool's OpenTelemetry Collector to support newer Prometheus versions (3.0+)?
- We would be interested in contributing to a fix for this issue. However, the source code for the custom OpenTelemetry Collector is not publicly available. Are there any plans to open-source this component?
Thank you very much.
- Dominant language
- Python
- Stars
- 106
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from f5devcentral/application-study-tool
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 62/100
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 50/100
f5devcentral/application-study-tool#267 · 7 comments ·
All issues in f5devcentral/application-study-tool
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100