Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config of Prometheus metrics of Blaze Fhir server on rev proxy out of the box? #50

Open
Mandalka opened this issue Mar 4, 2024 · 0 comments

Comments

@Mandalka
Copy link

Mandalka commented Mar 4, 2024

How about to setup the Prometheus/Grafana metrics interface of Blaze on the rev proxy out of the box?

Not sure, if better with separate .htpasswd but this small part could be edited/customized easier than to find out all important other things like separate port and so on from blaze documentation...

Not sure if location /metrics (maybe too general since flare is on this domain / rev proxy too but its Prometheus metrics_path default) or better parallel to /fhir as /fhir-metrics or /blaze-metrics.

Snippet (port 8081in snippet is right, for metrics not 8080 like on parallel location /fhir, since the Blaze Prometheus interface of blaze runs on separate port) for feasibility-triangle/rev-proxy/nginx.conf:

        location /metrics {
            auth_basic "Restricted";
            auth_basic_user_file /etc/nginx/.htpasswd;
            proxy_pass http://fhir-server:8081/metrics;
            proxy_set_header Authorization "";
            proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header X-Forwarded-Host  $http_host;
            proxy_set_header X-Forwarded-Port $server_port;
        }


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant