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 new floorplan with new queries for weekly data collection #1955

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
34 changes: 33 additions & 1 deletion deploy/clowdapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,35 @@ objects:
"system_profile_facts"->'sap' AS "sap_workload",
"system_profile_facts"->'rhc_client_id' AS "rhc_client_id"
FROM "hosts"

- apiVersion: metrics.console.redhat.com/v1alpha1
kind: FloorPlan
metadata:
name: host-inventory-hms
spec:
database:
secretName: ${FLOORIST_DB_SECRET_NAME}
objectStore:
secretName: ${FLOORIST_HMS_BUCKET_SECRET_NAME}
suspend: ${{FLOORIST_SUSPEND}}
logLevel: ${FLOORIST_LOGLEVEL}
queries:
- prefix: insights/inventory/hosts
SELECT
"id",
COALESCE("account", 0) AS "account_number",
"org_id" AS "org_id",
"created_on" AS "created_at",
"modified_on" AS "updated_at",
FROM "hosts"
- prefix: insights/inventory/groups_success_metrics
Copy link
Contributor

Choose a reason for hiding this comment

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

This also can be shorter: insights/inventory/groups.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!!!

query: >-
SELECT
"id",
COALESCE("account", 0) AS "account_number",
"org_id" AS "org_id",
"created_on" AS "created_at",
"modified_on" AS "updated_at",
FROM "groups"
- apiVersion: v1
data:
nginx.conf: |-
Expand Down Expand Up @@ -1525,6 +1553,10 @@ parameters:
name: FLOORIST_BUCKET_SECRET_NAME
required: true
value: dummy-secret
- description: bucket secret name
name: FLOORIST_HMS_BUCKET_SECRET_NAME
required: true
value: dummy-hms-secret
- name: FLOORIST_LOGLEVEL
description: Floorist loglevel config
value: 'INFO'
Expand Down