About Grafana Phlare IP address logging of a reverse proxy
In March 2023, Grafana Labs acquired Pyroscope, the company behind the eponymous open source continuous profiling project. As a result, the Pyroscope and Grafana Phlare projects will be merged under the new name Grafana Pyroscope. To learn more, read our recent blog post about the news.
If a reverse proxy is used in front of Phlare, it might be difficult to troubleshoot errors.
You can use the following settings to log the IP address passed along by the reverse proxy in headers such as
Set this to
trueto add IP address logging when a
X-Forwarded-Forheader is used. A field called
sourceIPsis added to error logs when data is pushed into Grafana Phlare.
The header field stores the source IP addresses and is used only if
true, and if
-server.log-source-ips-regexis set. If you do not set these flags, the default
X-Forwarded-Forheaders are searched.
A regular expression that is used to match the source IPs. The regular expression must contain at least one capturing group, the first of which is returned. This flag is used only if