1. In PingCentral, in the conf/application.properties file, which resides in the PingCentral installation directory, locate and define the following properties.
    management.metrics.export.prometheus.enabled=true
    management.metrics.export.prometheus.step=5s
    
  2. Save and close the file.
  3. Restart PingCentral.
  4. Set up the Prometheus prometheus.yaml configuration file and save it in the appropriate location.
    The following example uses the prometheus.yaml file locally with basic_auth:
    global:
    scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
    # scrape_timeout is set to the global default (10s).
    
    # A scrape configuration containing exactly one endpoint to scrape:
    # Here it's Prometheus itself.
    scrape_configs:
    # Metrics for PingCentral
      - job_name: 'pingcentral-metrics' 
        honor_timestamps: false 
        metrics_path: */actuator/prometheus' 
        scrape_interval: 5s 
        scheme: https 
        static_configs:
          - targets: [ 'xxx.xxx.x.x:9022' ]
        basic_auth:
          username: Administrator 
          password: 2Federate 
         tls_config:
           insecure_skip_verify: true
    
    Important:

    Use insecure_skip_verification: true exclusively in development or test environments.

  5. Access Prometheus.

    For more information, see Get started with Grafana and Prometheus in the Grafana documentation.