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 @@ -1184,7 +1184,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
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 @@ -1549,6 +1577,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