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

Npipe syntax to expose http monitoring is slightly different from consuming the metric #15832

Closed
ph opened this issue Jan 24, 2020 · 1 comment
Labels
bug Team:Integrations Label for the Integrations team

Comments

@ph
Copy link
Contributor

ph commented Jan 24, 2020

to consume metric over npipe:

- module: beat
  metricsets:
    - stats
    - state
  period: 10s
  hosts: ["http+npipe://./pipe/custom"]

To expose over npipe

http.enabled: true
http.host: npipe:///custom

We should align both to use http+npipe://./pipe/custom

ph added a commit to ph/beats that referenced this issue Jan 31, 2020
This is not a fix for elastic#15832 this will be tackle in another PR.
When http+npipe:// scheme were initially parsed by the url parser of
metric the generated PATH wasn't correctly setup up. So I've fixed the
parsing and the tests.

Now to test the behavior on Windows you will need a beat that expose metrics over
npipes, you can do so with a configuration like this.

```yaml
metricbeat.modules:
  - module: system

output.console: ~

http.enabled: true
http.host: \\.\pipe\custom
```yaml

After you can start a Metricbeat instance with the beat modules to
collect the metric information.

```yaml
metricbeat.modules:
- module: beat
  hosts: http+npipe://./pipe/custom
  metricsets:
  - stats
  - state
output.console: ~
```

If you start metricbeat with the `-e -d "*"` flags this will output any
metrics fetched from the running beat instance.

Fixes: elastic#15938
ph added a commit that referenced this issue Feb 4, 2020
This is not a fix for #15832 this will be tackle in another PR.
When http+npipe:// scheme were initially parsed by the url parser of
metric the generated PATH wasn't correctly setup up. So I've fixed the
parsing and the tests.

Now to test the behavior on Windows you will need a beat that expose metrics over
npipes, you can do so with a configuration like this.

```yaml
metricbeat.modules:
  - module: system

output.console: ~

http.enabled: true
http.host: \\.\pipe\custom
```yaml

After you can start a Metricbeat instance with the beat modules to
collect the metric information.

```yaml
metricbeat.modules:
- module: beat
  hosts: http+npipe://./pipe/custom
  metricsets:
  - stats
  - state
output.console: ~
```

If you start metricbeat with the `-e -d "*"` flags this will output any
metrics fetched from the running beat instance.

Fixes: #15938
ph added a commit to ph/beats that referenced this issue Feb 4, 2020
This is not a fix for elastic#15832 this will be tackle in another PR.
When http+npipe:// scheme were initially parsed by the url parser of
metric the generated PATH wasn't correctly setup up. So I've fixed the
parsing and the tests.

Now to test the behavior on Windows you will need a beat that expose metrics over
npipes, you can do so with a configuration like this.

```yaml
metricbeat.modules:
  - module: system

output.console: ~

http.enabled: true
http.host: \\.\pipe\custom
```yaml

After you can start a Metricbeat instance with the beat modules to
collect the metric information.

```yaml
metricbeat.modules:
- module: beat
  hosts: http+npipe://./pipe/custom
  metricsets:
  - stats
  - state
output.console: ~
```

If you start metricbeat with the `-e -d "*"` flags this will output any
metrics fetched from the running beat instance.

Fixes: elastic#15938
(cherry picked from commit 75ddc22)
ph added a commit to ph/beats that referenced this issue Feb 4, 2020
This is not a fix for elastic#15832 this will be tackle in another PR.
When http+npipe:// scheme were initially parsed by the url parser of
metric the generated PATH wasn't correctly setup up. So I've fixed the
parsing and the tests.

Now to test the behavior on Windows you will need a beat that expose metrics over
npipes, you can do so with a configuration like this.

```yaml
metricbeat.modules:
  - module: system

output.console: ~

http.enabled: true
http.host: \\.\pipe\custom
```yaml

After you can start a Metricbeat instance with the beat modules to
collect the metric information.

```yaml
metricbeat.modules:
- module: beat
  hosts: http+npipe://./pipe/custom
  metricsets:
  - stats
  - state
output.console: ~
```

If you start metricbeat with the `-e -d "*"` flags this will output any
metrics fetched from the running beat instance.

Fixes: elastic#15938
(cherry picked from commit 75ddc22)
ph added a commit that referenced this issue Feb 4, 2020
This is not a fix for #15832 this will be tackle in another PR.
When http+npipe:// scheme were initially parsed by the url parser of
metric the generated PATH wasn't correctly setup up. So I've fixed the
parsing and the tests.

Now to test the behavior on Windows you will need a beat that expose metrics over
npipes, you can do so with a configuration like this.

```yaml
metricbeat.modules:
  - module: system

output.console: ~

http.enabled: true
http.host: \\.\pipe\custom
```yaml

After you can start a Metricbeat instance with the beat modules to
collect the metric information.

```yaml
metricbeat.modules:
- module: beat
  hosts: http+npipe://./pipe/custom
  metricsets:
  - stats
  - state
output.console: ~
```

If you start metricbeat with the `-e -d "*"` flags this will output any
metrics fetched from the running beat instance.

Fixes: #15938
(cherry picked from commit 75ddc22)
ph added a commit that referenced this issue Feb 4, 2020
This is not a fix for #15832 this will be tackle in another PR.
When http+npipe:// scheme were initially parsed by the url parser of
metric the generated PATH wasn't correctly setup up. So I've fixed the
parsing and the tests.

Now to test the behavior on Windows you will need a beat that expose metrics over
npipes, you can do so with a configuration like this.

```yaml
metricbeat.modules:
  - module: system

output.console: ~

http.enabled: true
http.host: \\.\pipe\custom
```yaml

After you can start a Metricbeat instance with the beat modules to
collect the metric information.

```yaml
metricbeat.modules:
- module: beat
  hosts: http+npipe://./pipe/custom
  metricsets:
  - stats
  - state
output.console: ~
```

If you start metricbeat with the `-e -d "*"` flags this will output any
metrics fetched from the running beat instance.

Fixes: #15938
(cherry picked from commit 75ddc22)
@ph
Copy link
Contributor Author

ph commented Feb 4, 2020

Closing this all PRs were merged.

@ph ph closed this as completed Feb 4, 2020
@andresrc andresrc added the Team:Integrations Label for the Integrations team label Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

2 participants