Skip to content
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

Remove triple-dash from rendered yaml #587

Merged
merged 2 commits into from
Nov 29, 2019

Conversation

asenci
Copy link
Contributor

@asenci asenci commented Nov 29, 2019

Tripple-dash ("---") causes the following section of the configuration to be ignored by the Datadog agent

i.e:

    options:               # Optional
        replication: 1
        galera_cluster: 0
        extra_status_metrics: false
        extra_innodb_metrics: false
        extra_performance_metrics: false
        schema_size_metrics: false
        disable_innodb_metrics: false



---
logs:
- type: file
  path: "/var/lib/mysql/mysqld.log"
  service: mysql
  source: mysql

Tripple-dash ("---") causes the following section of the configuration to be ignored by the Datadog agent
@asenci asenci closed this Nov 29, 2019
Fixes `undefined method `[]' for #<Enumerator:0x51363864>`
@asenci asenci reopened this Nov 29, 2019
Copy link
Contributor

@albertvaka albertvaka left a comment

Choose a reason for hiding this comment

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

Good catch!

@albertvaka albertvaka merged commit 132e6d9 into DataDog:master Nov 29, 2019
@asenci asenci deleted the asenci/mysql-logs branch January 6, 2020 01:28
cegeka-jenkins pushed a commit to cegeka/puppet-datadog_agent that referenced this pull request Apr 6, 2020
A generated triple dash ("---") caused the logs section of the configuration to be ignored by the Datadog agent.
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.

2 participants