Export metrics
1
Scraping the built-in Prometheus endpoint (Server-to-Server)
scrape_configs:
- job_name: 'mem-federation'
scrape_interval: 60s
honor_labels: true
metrics_path: '/prometheus/federate'
params:
'match[]':
- '{job=~".+"}' # This parameter tells the endpoint to return all series.
static_configs:
- targets: ['<Enterprise_Manager_IP>:8090']
scheme: https
basic_auth:
username: admin # default username for Enterprise Manager
password: mariadb # default password for admin user
# You may need to add TLS and authentication configurations
# depending on your network setup and security requirements.
# tls_config:
# insecure_skip_verify: true2
Pushing metrics with the OpenTelemetry agent (Agent-to-External)
sudo mema-agent setup --cluster-name=MyCluster \
--endpoint=https://<external_ip> --otlp-port=<external_port> \
--mariadb --host-name=<hostname> \
--mariadb-user=<user> --mariadb-password=<password> \
--otlp-insecure --otlp-interval=60ssudo mema-agent setup --cluster-name=MyCluster \
--endpoint=https://<external_ip> --otlp-port=<external_port> \
--maxscale --host-name=<hostname> \
--maxscale-user=admin --maxscale-password=mariadb \
--otlp-insecure --otlp-interval=60sFlag
Description
Last updated
Was this helpful?

