Comments (5)
I will try to write a patch for this :)
from apache_exporter.
I wouldn't say is an anti pattern because one exporter does that, while every other one does not.
If you have more examples would be interesting to hear about it.
prometheus/haproxy_exporter#65 (comment)
You can see this comment here, grobie is using chef to setup Haproxy and the respective exporters and record the results in consul for service discovery.
Prometheus will then query consul to know what exporters to scrape.
Therefore, keeping the rule of one exporter per process being monitored.
from apache_exporter.
You are probably right that it isn't necessarily considered an anti-pattern.
Still, it would be nice (and easy I think) if it could work both ways. If a target is specified, use that, otherwise take what is configured on the command-line (or the default).
This would make deployment in many cases much easier.
from apache_exporter.
If you read this page, the blackbox and snmp exporter are particularly singled out as being exceptions to one process one exporter rule: https://prometheus.io/docs/instrumenting/writing_exporters/.
There are two exceptions:
The first is where running beside the application your monitoring is completely nonsensical. The SNMP, blackbox and IPMI exporters are the main examples of this.
. For exporters such as the blackbox exporter and SMNP exporter, which arenβt tied to a single target, these should only be exposed on a vanilla /metrics call, not on a scrape of a particular target.
Allowing prometheus to scrape multiple targets from a single exporter would be the anti-pattern.
I think its not worthwhile to come up with a patch. I try to keep the exporter as closely as possible to the official exporters, and the ones more closely related to Apache exporter don't support that option.
Better spend the extra time working on the deployment.
from apache_exporter.
OK, I won't spend time in creating a pull request. Personally I still think that it would be a small change with no big maintenance burden that could be useful to some users.
from apache_exporter.
Related Issues (20)
- How to install apache_exporter on Plesk VPS HOT 1
- ERROR: failed to load package
- Error: unrecognized log format
- Add support for '--web.config.file' flag and TLS authentication HOT 5
- Compilation error with Docker HOT 4
- Compile errors on RHEL 7.9 HOT 1
- apahce_up gauge showing 0 even though the apache_exporter is running HOT 1
- When setting up grafana datasource, always show Error reading Prometheus: HOT 1
- Question about metrics HOT 4
- Error for go version in security checking HOT 5
- Moving this exporter to pometheus-community repo and maintainance flows? HOT 2
- Is v0.12.0 ready for use? HOT 3
- Issue with 0.13.0 HOT 12
- Apache server-status issue HOT 1
- Please allow a user to configure cert and key for Apache
- Will this docker container still be available after April 14? HOT 2
- When is Next release 0.13.0 planned? HOT 3
- Missing metric
- Unexpected metrics HOT 2
- Filtering apache_accesses_total by url 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 apache_exporter.