prometheus.json
Prometheus configuration file
| Type | object | null |
|---|---|
| File match |
prometheus.yml
prometheus.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/prometheus-json/latest.json |
| Source | https://www.schemastore.org/prometheus.json |
Validate with Lintel
npx @lintel/lintel check
Prometheus configuration file
Properties
The global configuration specifies parameters that are valid in all other configuration contexts. They also serve as defaults for other configuration sections.
11 nested properties
An uncompressed response body larger than this many bytes will cause the scrape to fail. 0 means no limit. Example: 100MB.
Per-scrape limit on number of scraped samples that will be accepted. If more than this number of samples are present after metric relabelling the entire scrape will be treated as failed. 0 means no limit.
Per-scrape limit on number of labels that will be accepted for a sample. If more than this number of labels are present post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit.
Per-scrape limit on length of labels name that will be accepted for a sample. If a label name is longer than this number post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit.
Per-scrape limit on length of labels value that will be accepted for a sample. If a label value is longer than this number post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit.
Per-scrape config limit on number of unique targets that will be accepted. If more than this number of targets are present after target relabeling, Prometheus will mark the targets as failed without scraping them. 0 means no limit.
Rule files specifies a list of globs. Rules and alerts are read from all matching files.
Settings related to the remote write feature.
Settings related to the remote read feature.
Scrape config files specifies a list of globs. Scrape configs are read from all matching files and appended to the list of scrape configs.
A list of scrape configurations.
Alerting specifies settings related to the Alertmanager.
2 nested properties
Storage related settings that are runtime reloadable.
2 nested properties
1 nested properties
1 nested properties
Configures the maximum size of the circular buffer used to store exemplars for all series. Resizable during runtime.
Definitions
Sets the Authorization header on every remote write request with the configured username and password. password and password_file are mutually exclusive.
Sets the Authorization header on every scrape request with the configured credentials.
Sets the authentication type of the request.
Sets the credentials of the request. It is mutually exclusive with credentials_file.
Optionally configures AWS's Signature Verification 4 signing process to sign requests.
The AWS region. If blank, the region from the default credentials chain is used.
The AWS API keys. If blank, the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are used.
The AWS API keys. If blank, the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are used.
Named AWS profile used to authenticate.
AWS Role ARN, an alternative to using AWS API keys.
Optionally configure AzureAD.
1 nested properties
3 nested properties
1 nested properties
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
The URL to fetch the token from.
Scopes for the token request.
Optional parameters to append to the token URL.
5 nested properties
ServerName extension to indicate the name of the server.
Disable validation of the server certificate.
Sets the Authorization header on every scrape request with the configured bearer token. It is mutually exclusive with bearer_token_file.
ServerName extension to indicate the name of the server.
Disable validation of the server certificate.
List of Azure service discovery configurations.
List of Consul service discovery configurations.
List of DigitalOcean service discovery configurations.
List of Docker service discovery configurations.
List of Docker Swarm service discovery configurations.
List of DNS service discovery configurations.
List of EC2 service discovery configurations.
List of Eureka service discovery configurations.
List of file service discovery configurations.
List of GCE service discovery configurations.
List of Hetzner service discovery configurations.
List of HTTP service discovery configurations.
List of Kubernetes service discovery configurations.
List of Kuma service discovery configurations.
List of Lightsail service discovery configurations.
List of Linode service discovery configurations.
List of Marathon service discovery configurations.
List of AirBnB's Nerve service discovery configurations.
List of OpenStack service discovery configurations.
List of PuppetDB service discovery configurations.
List of Scaleway service discovery configurations.
List of Zookeeper Serverset service discovery configurations.
List of Triton service discovery configurations.
List of Uyuni service discovery configurations.
List of labeled statically configured targets for this job.