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 static telemetry metric with informaiton about chart version and enabled features #157

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

petewall
Copy link
Collaborator

@petewall petewall commented Oct 2, 2023

This creates a config map with a static metric defined: grafana_kubernetes_monitoring_build_info.
That metric has five labels:

  • version - the chart version
  • metrics - If metrics are enabled, will list the metric sources that are also enabled: "agent", "kube-state-metrics", "node-exporter", "windows-exporter", "kubelet", "cadvisor", "cost"
  • logs - If logs are enabled, will list "events" and/or "pod_logs"
  • traces - "enabled" or "disabled" based on the state of .Values.traces.enabled
  • deployments - The list of subcharts that are being deployed

The configmap is mounted to the agent pod, then scraped using prometheus.exporter.unix's textfile scraper.

Fixes #143

…enabled features

Signed-off-by: Pete Wall <pete.wall@grafana.com>
@petewall petewall self-assigned this Oct 2, 2023
@petewall petewall requested a review from skl October 2, 2023 19:28
Copy link
Collaborator

@skl skl left a comment

Choose a reason for hiding this comment

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

This is awesome, thank you!

@petewall petewall merged commit 88f2310 into main Oct 3, 2023
5 checks passed
@petewall petewall deleted the feat/k8s-mon-static-metric branch October 3, 2023 13:05
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.

Create some sort of static metric that reports chart version and some values
2 participants