Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

13.3. Configure Time-Series-Database-as-a-Service


When manually installing the Time-Series-Database-as-a-Service packages, the service's configuration file (namely, /etc/gnocchi/gnocchi.conf ) will have no settings configured. You will need to manually add and configure each setting as required.
  • In the [DEFAULT] section, enable logging and verbose output:
    [DEFAULT]
    debug = true
    verbose = true
    Copy to Clipboard Toggle word wrap
  • In the [API] section, list the number of workers:
    [api]
    workers = 1
    Copy to Clipboard Toggle word wrap
  • In the [database] section, set backend to sqlalchemy:
    [database]
    backend = sqlalchemy
    Copy to Clipboard Toggle word wrap
  • In the [indexer] section, configure the SQL database by passing the user name, password, and the IP address:
    [indexer]
    url = mysql://USER_NAME:PASSWORD@192.0.2.10/gnocchi2?charset=utf8
    Copy to Clipboard Toggle word wrap

    Note

    The database has to be created before starting gnocchi-api
  • In the [keystone_authtoken] section, update the authentication parameters. For example:
    [keystone_authtoken]
    auth_uri = http://192.0.2.7:5000/v2.0
    signing_dir = /var/cache/gnocchi
    auth_host = 192.0.2.7
    auth_port = 35357
    auth_protocol = http
    identity_uri = http://192.0.2.7:35357/
    admin_user = admin
    admin_password = 5179f4d3c5b1a4c51269cad2a23dbf336513efeb
    admin_tenant_name = admin
    Copy to Clipboard Toggle word wrap
  • In the [statsd] section, include the following parameter values:
    [statsd]
    resource_id = RESOURCE_ID
    user_id = USER_ID
    project_id = PROJECT_ID
    archive_policy_name = low
    flush_delay = 5
    Copy to Clipboard Toggle word wrap
    Replace the values for RESOURCE_ID, USER_ID, and PROJECT_ID with values for your deployment.
  • In the [storage] section, manually add the coordination_url and file_basepath and set the driver value to file:
    [storage]
    coordination_url = file:///var/lib/gnocchi/locks
    driver = file
    file_basepath = /var/lib/gnocchi
    Copy to Clipboard Toggle word wrap
  • Restart the gnocchi service to ensure that the change takes effect:
    # systemctl restart openstack-gnocchi-api.service
    # systemctl restart openstack-gnocchi-metricd.service
    # systemctl restart openstack-gnocchi-statsd.service
    Copy to Clipboard Toggle word wrap
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat