Skip to main content

Monitor infrastructure with Prometheus or Fluentd connections

Contributors amgrissino netapp-dbagwell netapp-mwallis

You can configure several optional settings to enhance your Astra Control Center experience. To monitor and gain insight into your complete infrastructure, configure Prometheus or add a Fluentd connection.

If the network where you're running Astra Control Center requires a proxy for connecting to the Internet (to upload support bundles to the NetApp Support Site), you should configure a proxy server in Astra Control Center.

Add a proxy server for connections to the NetApp Support Site

If the network where you're running Astra Control Center requires a proxy for connecting to the Internet (to upload support bundles to the NetApp Support Site), you should configure a proxy server in Astra Control Center.

Important Astra Control Center does not validate the details you enter for your proxy server. Ensure that you enter correct values.
Steps
  1. Log in to Astra Control Center using an account with admin/owner privilege.

  2. Select Account > Connections.

  3. Select Connect from the drop-down list to add a proxy server.

    This image shows the Connect option to enable proxy connection.

  4. Enter the proxy server name or IP address and the proxy port number.

  5. If your proxy server requires authentication, select the check box, and enter the username and password.

  6. Select Connect.

Result

If the proxy information you entered was saved, the HTTP Proxy section of the Account > Connections page indicates that it is connected, and displays the server name.

This image shows that the proxy server successfully connected.

Edit proxy server settings

You can edit the proxy server settings.

Steps
  1. Log in to Astra Control Center using an account with admin/owner privilege.

  2. Select Account > Connections.

  3. Select Edit from the drop-down list to edit the connection.

  4. Edit the server details and authentication information.

  5. Select Save.

Disable proxy server connection

You can disable the proxy server connection. You'll be warned before you disable that potential disruption to other connections might occur.

Steps
  1. Log in to Astra Control Center using an account with admin/owner privilege.

  2. Select Account > Connections.

  3. Select Disconnect from the drop-down list to disable the connection.

  4. In the dialog box that opens, confirm the operation.

Connect to Prometheus

You can monitor Astra Control Center data with Prometheus. You can configure Prometheus to gather metrics from the Kubernetes cluster metrics endpoint, and you can use Prometheus also to visualize the metrics data.

For details about using Prometheus, refer to their documentation at Getting started with Prometheus.

What you'll need

Make sure that you have downloaded and installed the Prometheus package on the Astra Control Center cluster or a different cluster that can communicate with the Astra Control Center cluster.

Follow the instructions in the official documentation to Install Prometheus.

Prometheus needs to be able to communicate with the Astra Control Center Kubernetes cluster. If Prometheus is not installed on the Astra Control Center cluster, you need to make sure they can communicate with the metrics service running on the Astra Control Center cluster.

Configure Prometheus

Astra Control Center exposes a metrics service on TCP port 9090 in the Kubernetes cluster. You need to configure Prometheus to collect metrics from this service.

Steps
  1. Log into the Prometheus server.

  2. Add your cluster entry into the prometheus.yml file. In the yml file, add an entry similar to the following for your cluster in the scrape_configs section:

    job_name: '<Add your cluster name here. You can abbreviate. It just needs to be a unique name>'
      metrics_path: /accounts/<replace with your account ID>/metrics
      authorization:
         credentials: <replace with your API token>
      tls_config:
         insecure_skip_verify: true
      static_configs:
        - targets: ['<replace with your astraAddress. If using FQDN, the prometheus server has to be able to resolve it>']
    Note If you set the tls_config insecure_skip_verify to true, the TLS encryption protocol is not required.
  3. Restart the Prometheus service:

    sudo systemctl restart prometheus

Access Prometheus

Access the Prometheus URL.

Steps
  1. In a browser, enter the Prometheus URL with port 9090.

  2. Verify your connection by selecting Status > Targets.

View data in Prometheus

You can use Prometheus to view Astra Control Center data.

Steps
  1. In a browser, enter the Prometheus URL.

  2. From the Prometheus menu, select Graph.

  3. To use the Metrics Explorer, select the icon next to Execute.

  4. Select scrape_samples_scraped and select Execute.

  5. To see sample scraping over time, select Graph.

    Note If multiple cluster data was collected, each cluster's metrics appear in a different color.

Connect to Fluentd

You can send logs (Kubernetes events) from a system monitored by Astra Control Center to your Fluentd endpoint. The Fluentd connection is disabled by default.

Note Fluentd connections are not supported for clusters managed with declarative Kubernetes workflows. You can only connect Fluentd to clusters managed with non-Kubernetes-native workflows.

This is a conceptual diagram of event logs going from Astra to Fluentd.

Note Only the event logs from managed clusters are forwarded to Fluentd.
Before you begin
  • An Astra Control Center account with admin/owner privileges.

  • Astra Control Center installed and running on a Kubernetes cluster.

Important Astra Control Center does not validate the details you enter for your Fluentd server. Ensure that you enter the correct values.
Steps
  1. Log in to Astra Control Center using an account with admin/owner privilege.

  2. Select Account > Connections.

  3. Select Connect from the drop-down list where it shows Disconnected to add the connection.

    This image shows the UI screen for enabling connection to Fluentd.

  4. Enter the host IP address, the port number, and shared key for your Fluentd server.

  5. Select Connect.

Result

If the details you entered for your Fluentd server were saved, the Fluentd section of the Account > Connections page indicates that it is connected. Now you can visit the Fluentd server that you connected and view the event logs.

If the connection failed for some reason, the status shows Failed. You can find the reason for failure under Notifications at the top-right side of the UI.

You can also find the same information under Account > Notifications.

Important If you are having trouble with log collection, you should log in to your worker node and ensure that your logs are available in /var/log/containers/.

Edit the Fluentd connection

You can edit the Fluentd connection to your Astra Control Center instance.

Steps
  1. Log in to Astra Control Center using an account with admin/owner privilege.

  2. Select Account > Connections.

  3. Select Edit from the drop-down list to edit the connection.

  4. Change the Fluentd endpoint settings.

  5. Select Save.

Disable the Fluentd connection

You can disable the Fluentd connection to your Astra Control Center instance.

Steps
  1. Log in to Astra Control Center using an account with admin/owner privilege.

  2. Select Account > Connections.

  3. Select Disconnect from the drop-down list to disable the connection.

  4. In the dialog box that opens, confirm the operation.