Josu Estebanez Sarria
02/26/2023, 2:11 PMSrikanth Chekuri
02/27/2023, 12:42 AMJosu Estebanez Sarria
02/27/2023, 11:33 AMbut I don't know where I can see the apache metrics.
Srikanth Chekuri
02/27/2023, 12:04 PMJosu Estebanez Sarria
02/27/2023, 12:40 PMSrikanth Chekuri
02/27/2023, 12:52 PMso in apache I don’t have to do anything right?You need to configure the
httpd.conf
to let the collector receive the metrics
Where can the logs be seen?In the pod/container for the collector where you configured the apache receiver. Remember just adding the receiver also doesn’t create metrics. You need to add it to the pipeline.
Josu Estebanez Sarria
02/27/2023, 2:40 PMand on the other hand in otel-collector-config.yaml
I have configured this:
receivers:
Apache:
endpoint: "<http://localhost:80/server-status?auto>"
but what has been said... from the Dashboard or Alert I see the metrics
he apache log without problem. I see the calls to the status:
172.17.0.1 - - [26/Feb/2023:13:04:29 +0000] "GET /server-status?auto%22 HTTP/1.1" 200 1168
172.17.0.1 - - [26/Feb/2023:13:04:29 +0000] "GET /server-status?auto%22 HTTP/1.1" 200 1169
172.17.0.1 - - [26/Feb/2023:13:04:29 +0000] "GET /server-status?auto%22 HTTP/1.1" 200 1169
172.17.0.1 - - [26/Feb/2023:13:04:30 +0000] "GET /server-status?auto%22 HTTP/1.1" 200 1169
172.17.0.1 - - [26/Feb/2023:13:04:32 +0000] "GET /server-status?auto HTTP/1.1" 200 1169
172.17.0.1 - - [26/Feb/2023:13:04:34 +0000] "GET /server-status?auto HTTP/1.1" 200 1168
172.17.0.1 - - [26/Feb/2023:13:04:35 +0000] "GET /server-status?auto HTTP/1.1" 200 1169
172.17.0.1 - - [26/Feb/2023:13:04:35 +0000] "GET /server-status?auto HTTP/1.1" 200 1169
172.17.0.1 - - [26/Feb/2023:13:04:35 +0000] "GET /server-status?auto HTTP/1.1" 200 1168
Srikanth Chekuri
02/27/2023, 4:38 PMJosu Estebanez Sarria
02/27/2023, 4:49 PMon line 70 you will see:
Apache:
endpoint: "<http://localhost:8080/server-status?auto>"
Srikanth Chekuri
02/27/2023, 5:31 PMJosu Estebanez Sarria
02/27/2023, 6:06 PMWould it also be added in?:
otel-collector-metrics-config.yaml
and how would it be done? I don't see anything in the documentation
Srikanth Chekuri
02/27/2023, 6:12 PMmetrics:
receivers: [otlp]
processors: [batch]
exporters: [clickhousemetricswrite]
metrics:
receivers: [otlp, apache]
processors: [batch]
exporters: [clickhousemetricswrite]
Josu Estebanez Sarria
02/27/2023, 7:31 PMThank you very much for the help.
I see the apache metrics