- Notifications
You must be signed in to change notification settings - Fork 497
Migrate Prometheus Module to Package #114
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
Conversation
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Pinging @elastic/integrations (Team:Integrations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a couple of notes.
Could you please post a screenshot with integration's configuration form in Kibana?
default: "9201" | ||
- name: ssl.enabled | ||
type: bool | ||
title: Ssl Enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Enabled SSL?
default: false | ||
- name: ssl.certificate | ||
type: text | ||
title: Ssl Certificate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: SSL certificate
required: false | ||
show_user: true | ||
default: /etc/pki/server/cert.key | ||
title: Prometheus remote_write metrics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prometheus remote write metrics
show_user: true | ||
default: /etc/pki/server/cert.key | ||
title: Prometheus remote_write metrics | ||
description: Collect Prometheus remote_write metrics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
packages/prometheus/docs/README.md Outdated
To scrape metrics from a Prometheus exporter, configure the `hosts` field to it. The path | ||
to retrieve the metrics from (`/metrics` by default) can be configured with `metrics_path`. | ||
| ||
```$yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this config is not relevant for Elastic Agent anymore. All configs are distributed and generated in Kibana.
| ||
When `use_types` and `rate_counters` are enabled, metrics are stored like this: | ||
| ||
```$json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yesterday I pushed the tool for generating docs, which supports rendering events from a separate JSON file.
Could you please adjust the README template (import-beats-resources) similarly to #110 ?
packages/prometheus/docs/README.md Outdated
| ||
#### Scraping all metrics from a Prometheus server | ||
| ||
> ⚠️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this :D ?
packages/prometheus/docs/README.md Outdated
| dataset.name | Dataset name. | constant_keyword | | ||
| dataset.namespace | Dataset namespace. | constant_keyword | | ||
| dataset.type | Dataset type. | constant_keyword | | ||
| prometheus. | | keyword | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you miss type somewhere?
packages/prometheus/docs/README.md Outdated
"ecs": { | ||
"version": "1.5.0" | ||
}, | ||
"host": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used to clean all details regarding host. It would make the event smaller.
Please also rebase against master. |
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Thanks for the review @mtojek ! PR has been updated:
|
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
@@ -0,0 +1,11 @@ | |||
- name: prometheus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file seems to be missing some fields. I would expect it to be a mix between x-pack and oss fields.yml's, as we are shipping the basic agents with the agent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦 good catch, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fields.yml is incomplete, everything else LGTM!
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
@exekias I added manually the missing fields and tested manually again to verify nothing is broken. Feel free to have another look :)! |
Implementing Prometheus package migration
Screenshots:



