Open auwaerter opened 1 week ago
I think i've found the issue.
Seems like my configuration settings posted above e.g. Objects.yaml
was not read somehow when i've added it with the name
neos-root/Configuration/Production/Settings.Prometheus.yaml
. I found out, as i've tested it with adding basicAuth and it was not changing the access of the /metrics
path.
It started working as i was overwriting the file
neos-root/Packages/Application/Flownative.Prometheus/Configuration/Objects.yaml
and added the basicAuth there.
As i don't want to overwrite and content of a package, i've renamed tmy Settings.Prometheus.yaml to Objects.yaml, as suggested in the documentation. Didn't expected it to be that sensitive regarding the naming. I will try to prepare a PR for this.
Hey, good find! Indeed Objects (configuration) and settings (and e.g. routes) are different types of configuration that are handled differently by the configuration manager and each relies on respective naming of the Files. So anything Settings.*.yaml will end up as Settings, etc. Thanks for taking care of the version update, we'll checkout the PR ASAP.
I've tried to replace the component chain with a PSR-15 middleware, so it is compatible with Flow 8.
For this, i've touched the original HttpMetricsCollectorComponent.php and modified it the following way. In addition, i've changed the original Settings.Http.yaml to the following, to register it as a middleware.
I've understood, that for this package to run i need to have flownative/prometheus v1.2.0 installed and configured. That's what i did with some global configuration for my Neos project:
However, beside receiving the message
# Flownative Prometheus Metrics Exporter: There are currently no metrics with data to export.
when i'm openinghttps://host/metrics
also the redis database seems to be empty:This package does not seem to be touched for quite some time, so i'm wondering if it is still maintained - or if i should move to something else instead. Could there be any configuration issue on my side?
Any help is appreciated! :)