Prometheus & Kubernetes Integration - Setup & Installation Docs | Middleware
Retrieve metrics from a Prometheus endpoint inside K8s.
To scrape the prometheus endpoint via Middleware Agent, You will have to add this sidecar container
in your pod:
MW_TARGET : Specifies the target URL for the Middleware service. This URL defines the endpoint where your application should interact with the middleware.
Example Value : https://xxxxx.middleware.io:443
MW_API_KEY : Provides the API key required for authenticating with the Middleware service. Ensure the key is kept confidential and only shared with authorized users or services.
Example Value : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PROMETHEUS_SCRAPE_CONFIG : Configures Prometheus scraping targets. This variable should be set in the format ‘job@address:port’, where ‘job’ represents the scraping job name, ‘address’ is the IP address or hostname, and ‘port’ is the port to scrape metrics from.
Example Value : [email protected]:8889,[email protected]:8890
You can now access this metrics data under our Dashboard builder
https://app.middleware.io/reports
These metrics can be visualized using various widget types, such as Timeseries, Bar Chart, Pie Chart, and more.