Comments (4)
I doubt this will be seen by the right audience. Maybe it's more a request for the maintainers of the snap packages?
from prometheus.
@beorn7 Sorry maybe it wasn't clear. Snap is behaving as I would expect it to behave while the docker image is the one "misbehaving" here.
from prometheus.
This isn't really anything to do with the Docker image either, overriding --entrypoint
on the Docker command line is tricky to get right, particularly as Docker supports a JSON format for multiple arguments in the Dockerfile, but not on the command line.
With:
docker run -v $PWD:/charm --entrypoint "/bin/promtool" prom/prometheus:latest 'check rules /charm/src/prometheus_alert_rules/*.rule'
The entire argument of check rules /charm/src/prometheus_alert_rules/*.rule
is being passed as one argument, with no shell parsing it. For the globs to work a shell needs to be involved.
My suggestion to make globbing work as you expect is to map in the same path on the host as the container, i.e.:
docker run -v $PWD:$PWD --entrypoint "" prom/prometheus:latest promtool check rules $PWD/*.rule
Checking /home/dgl/foo.rule
SUCCESS: 0 rules found
Then the globbing happens outside the container. This approach will continue working in the future as we may stop shipping a shell inside the container (i.e. use "distroless" containers).
from prometheus.
Looks like this is a usage question. I'll convert it to a discussion so that it stays around to help others.
from prometheus.
Related Issues (20)
- [Feature] Add new labels to time series
- Prometheus Mixin Dashboard: Prometheus/Overview Grafana Dashboard Using Deprecated Angular components HOT 2
- remote write 2.0 - decide how to handle no metadata found
- remote write 2.0 - decide whether addition of metadata should count towards max samples in write request
- remote write 2.0 - update write handler benchmarks for 2.0 format
- remote write 2.0 - DRY the queue manager code HOT 2
- feat: Move remote write receive to runtime reloadable config HOT 1
- [flaky test] TestEvaluations/testdata/native_histograms.test HOT 1
- ui (tests): Add tests for Native histogram helpers HOT 2
- remote write 2.0 - update `TestSampleDelivery` to check for metadata in 2.0 proto
- remote write 2.0 - update test for old samples filtering for 2.0
- @ modifier with future return inconsistent value for sum_over_time HOT 3
- Prometheus stucks on protection from Host Header Injection HOT 1
- SIGSEGV after writing block HOT 5
- Not enough memory resources HOT 2
- `navigator.clipboard` may not be available HOT 2
- Prometheus Staleness Issue on Fedora 39
- Prometheus reload not exist block: opening storage failed
- Metrics in "/actuator/prometheus" are not consistent in a multi nodes environment (kubernetes) HOT 1
- Recommendation for PGO with Prometheus HOT 1
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 prometheus.