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

add consul plugin #530

Merged
merged 2 commits into from Jun 7, 2023
Merged

Conversation

yangliyl
Copy link
Contributor

@yangliyl yangliyl commented Jun 7, 2023

No description provided.


```toml @sample.conf
# Gather health check statuses from services registered in Consul
[[inputs.consul]]
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个地方不是inputs.consul


## Example Output

```text
Copy link
Collaborator

Choose a reason for hiding this comment

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

如果指标样例有变化 也辛苦重新标注

Copy link
Contributor Author

Choose a reason for hiding this comment

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

指标样例就是最新的


func (ins *Instance) Init() error {
conf := api.DefaultConfig()

Copy link
Collaborator

Choose a reason for hiding this comment

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

ins.Address 为空 返回 types.ErrInstancesEmpty。 username + password 或者 Token为空给出相应的提示

Copy link
Contributor Author

Choose a reason for hiding this comment

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

consul 允许无密码和无token

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已处理

@kongfei605
Copy link
Collaborator

LGTM, thank you @yangliyl

@kongfei605 kongfei605 merged commit 356adbc into flashcatcloud:main Jun 7, 2023
@yangliyl yangliyl deleted the feature/add_consul branch June 8, 2023 02:23
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.

None yet

2 participants