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

Use exporter-toolkit #71

Merged
merged 1 commit into from
Jul 27, 2023
Merged

Use exporter-toolkit #71

merged 1 commit into from
Jul 27, 2023

Conversation

mrueg
Copy link

@mrueg mrueg commented Mar 20, 2023

This adds support for TLS configuration on the http metrics endpoint as well as support for a landing page.

main.go Outdated
Comment on lines 22 to 23
addr = flag.String("metrics-address", ":2112", "The address to listen on for HTTP requests.")
tlsConf = flag.String("metrics-tls-config", "", "The TLS config file for your metrics.")
Copy link

Choose a reason for hiding this comment

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

Nice addition 👍 would it be better to have a config section for metrics instead? (have to duplicate addr for backward compatibility atm) so the arg key section is not growing.

metrics:
  - servePort: 2112
  - namePrefix: bla
  - tlsConfigFile: /path

@mustafaakin
Copy link

Why do we need a landing page?

@mrueg
Copy link
Author

mrueg commented Jul 21, 2023

Why do we need a landing page?

You do have one already: https://github.com/resmoio/kubernetes-event-exporter/blob/master/pkg/metrics/metrics.go#L26 This is just replacing the custom html with something that exporter-toolkit provides (it's not a super interesting feature, the TLS support is more interesting)

This adds support for TLS configuration on the http metrics endpoint
as well as support for a landing page.
@mustafaakin mustafaakin merged commit 9e7f84b into resmoio:master Jul 27, 2023
1 check passed
@mrueg mrueg deleted the exporter-toolkit branch July 27, 2023 08:16
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

3 participants