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

chore: add simple metrics related to installed templates #19873

Merged
merged 1 commit into from
Nov 2, 2020
Merged

Conversation

glinton
Copy link
Contributor

@glinton glinton commented Oct 30, 2020

Closes #19688

Although there are current metrics related to templates, this adds a simple count of community templates installed ("custom" if it's not an official template).

# current:
service_pkger_template_count{method="apply",org_id="ORGID",source="https://github.com/influxdata/community-templates/blob/master/linux_system/linux_system.yml",user_id="USERID"} 2

# new:
templates_installed_count{template="linux_system"} 2

@glinton glinton requested a review from a team as a code owner October 30, 2020 19:53
Copy link
Contributor

@stuartcarnie stuartcarnie left a comment

Choose a reason for hiding this comment

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

Just like it's Cloud counterpart 👍

@glinton glinton merged commit 285c6ce into master Nov 2, 2020
@glinton glinton deleted the chore/19688 branch November 2, 2020 17:59
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.

Add /metric gauge for templates
2 participants