이 콘텐츠는 선택한 언어로 제공되지 않습니다.

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
  • In the [API] section, list the number of workers:
    [api]
    workers = 1
  • In the [database] section, set backend to sqlalchemy:
    [database]
    backend = sqlalchemy
  • 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

    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
  • 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
    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
  • 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
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.