Comments (12)
I misread your question.
It seems the exporter couldnt connect to Apache.
Do you see any errors when you run the exporter in the command line?
You need to enable server-status handler for Apache to report data. This is the most frequent issue.
You should be able to read Apache data on this url localhost/server-status?auto
by defalt
See the previous discussion at #29 (comment)
from apache_exporter.
HI @janeunbi
Is it working now?
from apache_exporter.
hi @Lusitaniae
Thank you for your reply
nope it doesn't work, I can see the all metrics provided.
I can't understand why value of apache_up comes out 0 even the apache_exporter and apache still working on.
from apache_exporter.
hi @janeunbi
You're missing all the Apache metrics except for apache_up with reports as 0.
Can you run curl localhost/server-status?auto
on the server and share the result?
This is the url the exporter is trying to get metrics from.
from apache_exporter.
Here's my all the Apache metrics and apache_up status behind the chart.
Through this, I can figure it out its metrics works except apache_up metric
from apache_exporter.
from apache_exporter.
Sorry I forgot to attach the files.
I don't know which server I should run "curl localhost/server-status?auto ", so I typed it both prometheus server and web server which installed apache_up.
Here's the pic of prometheus server.
This one is installed apache_up.
from apache_exporter.
the command is meant to retrieve the status page from Apache itself, so running it in the same machine as apache is the right one.
Looking at that 301 redirect you show on the 2nd screenshot I'd say the rewrite rule you use to enforce https is not working as expected, as you can see there's a slash missing there.
Please also check you have all the configuration required, as described in the official docs.
https://httpd.apache.org/docs/2.4/mod/mod_status.html
<Location "/server-status">
SetHandler server-status
Require host example.com
</Location>
or follow a more detailed guide such as
https://www.shellhacks.com/prometheus-apache-exporter-install-config-ubuntu-centos/
from apache_exporter.
Thank you for trying to help me.
I read your comment over and over, not sure I'm in the right direction.
- Which one is 301 redirect? Where is the slash missing?
- you mean "https" causing this problem, am I right?
- To fix this problem, I need to enable Apache Server Status Page and should make or edit configuration file in the Web server.
p.s. I'm not sure I understand what you said. Unfortunately, web server is belong to my work, I don't think I able to fix that file.
Thank you again
from apache_exporter.
@janeunbi, maybe its possible someone else at your company have a look at this?
If the Apache config needs to be fixed to make it work, there's no other way around it.
from apache_exporter.
hi @janeunbi
Is this still an issue?
Is there anything I can help with?
from apache_exporter.
I will close the issue unless you need additional feedback here.
In case you dive into this further, the answer to your questions
- the redirect is seen on the 2nd screenshot you've sent
- Can be, there's a redirect rule somewhere that is causing the missing slash-
- yes, you need to review the web server config.
from apache_exporter.
Related Issues (20)
- 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
- Is this available via APT? HOT 2
- assets missing for V1.04 HOT 12
- Set User-Agent to something more meaningful 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 apache_exporter.