Skip to content

Addition of configMap.yaml file #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

vineela1999
Copy link
Contributor

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind new feature
/kind bug fix
/kind cleanup
/kind revert change
/kind design
/kind documentation
/kind enhancement

What this PR does / why we need it:
This PR includes configMap.yaml file instead of giving configMap from a file
Which issue(s) this PR fixes:

Fixes #

Test Report Added?:

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind TESTED
/kind NOT-TESTED

Test Report:

Special notes for your reviewer:

Copy link
Collaborator

@joseph-v joseph-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@te-koyanagi
Copy link
Contributor

I confirmed that the attached configMap.yaml works in the user integration scenario described in the document in PR #28.

This configMap was composed based on the api-paste.ini and delfin.conf files included in the directory under the delfin project.
https://github.com/sodafoundation/delfin/tree/master/etc/delfin

This configMap is almost the same as the configMap.yaml with prometheus committed on this PR.

apiVersion: v1
kind: ConfigMap

metadata:
  name: delfin-config
  namespace: default

data:
  delfin.conf: |
    [DEFAULT]
    api_paste_config = /etc/delfin/api-paste.ini
    delfin_cryptor = delfin.cryptor._Base64
    api_max_limit = 1000
    # Uncomment or add exporters
    performance_exporters = PerformanceExporterPrometheus, PerformanceExporterKafka
    alert_exporters = AlertExporterPrometheus

    [database]
    connection = sqlite:////var/lib/delfin/delfin.sqlite
    db_backend = sqlalchemy

    [TELEMETRY]
    performance_collection_interval = 900

    [KAFKA_EXPORTER]
    kafka_topic_name = "delfin-kafka"
    kafka_ip = 'localhost'
    kafka_port = '9092'

    [PROMETHEUS_EXPORTER]
    metric_server_ip = 0.0.0.0
    metric_server_port = 8195
    metrics_cache_file = /var/lib/delfin/delfin_exporter.txt

    [PROMETHEUS_ALERT_MANAGER_EXPORTER]
    alert_manager_host = 'localhost'
    alert_manager_port = '9093'

  api-paste.ini: |
    #############
    #  Delfin  #
    #############

    [composite:delfin]
    use = call:delfin.api:root_app_factory
    /v1: delfin_api_v1

    [filter:http_proxy_to_wsgi]
    paste.filter_factory = oslo_middleware.http_proxy_to_wsgi:HTTPProxyToWSGI.factory

    [pipeline:delfin_api_v1]
    pipeline = cors http_proxy_to_wsgi context_wrapper delfin_api_v1app

    [app:delfin_api_v1app]
    paste.app_factory = delfin.api.v1.router:APIRouter.factory

    [filter:context_wrapper]
    paste.filter_factory = delfin.api.middlewares:ContextWrapper.factory

    [filter:cors]
    paste.filter_factory = oslo_middleware.cors:filter_factory
    oslo_config_project = delfin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants