9-BoNUS
admin
Prometheus.yaml

Documentation

global: scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.

Alertmanager configuration

alerting: alertmanagers:

  • static_configs:
    • targets:
      • localhost:9093

Rules and alerts are read from the specified file(s)

rule_files:

  • /etc/prometheus/alerts.yaml

- /etc/prometheus/prod-alerts.yaml

- /etc/prometheus/staging-alerts.yaml

- /etc/prometheus/resource-alerts.yaml

################### Targets ############### scrape_configs:

  • job_name: 'aws-ec2' ec2_sd_configs:
    • region: 'ap-south-1' access_key: '' secret_key: '' port: 9100 relabel_configs:

    Use public IPs for scraping

    • source_labels: [__meta_ec2_public_ip] target_label: address replacement: '$1:9100'

    Optional: Add instance name as a label

- source_labels: [__meta_ec2_tag_Name]

target_label: instance

Merge instance name with instance ID for uniqueness

  • source_labels: [__meta_ec2_tag_Name, __meta_ec2_instance_id] separator: "-" target_label: instance

Optional: Add tags as labels for better observability

- source_labels: [__meta_ec2_tag_Environment]

target_label: environment

- source_labels: [__meta_ec2_tag_Role]

target_label: role

If you only want to scrape specific instances (e.g., those tagged with Monitoring=enabled), add this relabeling rule:

- source_labels: [__meta_ec2_tag_Monitoring]

regex: enabled

action: keep

prometheus it self

  • job_name: 'Azure-prometheus' scrape_interval: 5s static_configs:
    • targets: ['localhost:9090']

metrics of grafana vm

  • job_name: 'Azure-grafana-vm' scrape_interval: 30s static_configs:
    • targets: ['localhost:9100'] labels: environment: 'resource' region: 'central-india' cloud: 'azure'

Uptime kuma metris

  • job_name: 'Azure-uptime-kuma' scrape_interval: 30s scheme: https static_configs:
    • targets: ['uptime.x.com'] labels: environment: 'resource' region: 'central-india' cloud: 'azure' basic_auth: password: esdfnghjmgfdscdcsdcscfgbh

jenkins vm

- job_name: 'jenkins'

static_configs:

- targets: ['4.240.0.37:8080']

metrics of auto-test VM

  • job_name: Azure-auto-test scrape_interval: 30s static_configs:
    • targets: ['98.70.78.29:9100'] labels: environment: 'resource' region: 'central-india' cloud: 'azure'

metrics of jenkins VM

  • job_name: Azure-jenkins scrape_interval: 30s static_configs:
    • targets: ['4.240.0.37:9100'] labels: environment: 'resource' region: 'central-india' cloud: 'azure'

metrics of Sentry-Uptime-Server VM

  • job_name: Azure-Sentry-Uptime-Server scrape_interval: 5s static_configs:
    • targets: ['4.240.75.137:9100'] labels: environment: 'resource' region: 'central-india' cloud: 'azure'

metrics of n8n8n-server VM

  • job_name: Azure-n8n8n-server scrape_interval: 5s static_configs:
    • targets: ['20.244.98.85:9100']

metrics of Appsmith VM

  • job_name: Azure-Appsmith scrape_interval: 30s static_configs:
    • targets: ['20.244.27.71:9100']

metrics of metabase VM

  • job_name: Azure-metabase scrape_interval: 30s static_configs:
    • targets: ['4.240.82.208:9100']

metrics of formbuilder VM

  • job_name: Azure-formbuilder scrape_interval: 5s static_configs:
    • targets: ['4.186.59.125:9100']

AZURE SCRAPE Prometheus=true PROD ONLY

###############################################################################################################################

metrics of backend-api-primary VM

  • job_name: Azure-backend-api-primary scrape_interval: 5s static_configs:
    • targets: ['20.244.6.180:9100']

metrics of Breeze VM

  • job_name: Azure-Breeze scrape_interval: 5s static_configs:
    • targets: ['4.187.151.129:9100']

metrics of Frontend-Static-VM VM

  • job_name: Azure-Frontend-Static-VM scrape_interval: 5s static_configs:
    • targets: ['4.188.2.91:9100']

metrics of prod-redis-server VM

  • job_name: Azure-prod-redis-server scrape_interval: 5s static_configs:
    • targets: ['98.70.36.157:9100']

metrics of quick-checkout VM

  • job_name: Azure-quick-checkout scrape_interval: 5s static_configs:
    • targets: ['4.188.3.63:9100']

metrics of Svix-Webhooks VM

  • job_name: Azure-Svix-Webhooks scrape_interval: 5s static_configs:
    • targets: ['4.240.115.42:9100']

metrics of Squid-Proxy-Server VM

  • job_name: Azure-Squid-Proxy-Server scrape_interval: 10s static_configs:
    • targets: ['40.81.249.138:9100']

metrics of posthog-selfhost VM

  • job_name: Azure-posthog-selfhost scrape_interval: 10s static_configs:
    • targets: ['4.186.59.59:9100']

💬 Need a Quick Summary?

Hey! Don't have time to read everything? I get it. 😊
Click below and I'll give you the main points and what matters most on this page.
Takes about 5 seconds • Uses Perplexity AI