Prometheus
This guide configures Prometheus to stream metrics to Layer 9’s hosted collector via the Prometheus Remote Write protocol.
Prerequisites
Section titled “Prerequisites”- A running Prometheus server
- Access to its config file (prometheus.yml)
- Ability to reload Prometheus after config changes
- Outbound internet access to the remote-write URL
- Firewall allows egress to 443
- Router/NAT supports outgoing HTTPS
- Note: Public IP whitelisting available upon request
Step 1: Coordinate with Layer Nine Team
Section titled “Step 1: Coordinate with Layer Nine Team”Contact the Layer Nine team to obtain your organization-specific connection details:
- Remote write URL
- Secret Key
Step 2: Add “remote write” config
Section titled “Step 2: Add “remote write” config”Update your Prometheus configuration to include the “remote_write” section.
remote_write: - url: <REMOTE WRITE URL> headers: X-Layer9-Secret: <SECRET KEY>For the full list of configurations, visit the official documentation.