Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Filtering by dashboards in a specific dashboard list doe not work as expected

Aperta
#340 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
docker, python
Ambito
api, cli

Direzione di ricerca

Inizia riproducendo i comandi documentati import e diffs per la risorsa dashboard_lists, quindi traccia gli entry point del filtraggio di dashboard-list e di resource-connection. Il lavoro è completato quando l’importazione dell’elenco selezionato rende disponibile anche il relativo dashboard e diffs non lo segnala più come una connessione non riuscita.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Update: I've spoken to someone at Datadog Support and we've updated the commands (the outcome is still the same)

I want to import just the single Dashboard "Random" in a dashboard list called "Sync EU Test". Importing from US1 and trying to sync to EU1.

Using the docker image built from the latest commit in this repo (SHA1 f0d5cac8a17dc9af49a0c7aa91a8ec18a6dbde18)

docker run --rm -v "$(pwd)/datadog-sync-data:/datadog-sync:rw" \
-e DD_SOURCE_API_KEY="${DD_API_KEY}" \
-e DD_SOURCE_APP_KEY="${DD_APP_KEY}" \
-e DD_SOURCE_API_URL="${DD_SITE_URL}" \
datadog-sync:latest import \
--resources="dashboard_lists" \
--filter "Type=dashboard_lists;Name=name;Value=^Sync EU Test$" \
--verify-ddr-status=false \
--verbose --send-metrics=false

This appears to be correct I'm assuming one resource for the Dashboard and one resource for the Dashboard Lists.

2025-04-08 16:33:59,605 - WARNING - Defaulting to filter Operator `ExactMatch'. Please ensure the filter Value provided is updated as this behavior will be removed in the future. See the official README.md for more information.
2025-04-08 16:33:59,605 - INFO - Using local filesystem to store state files
2025-04-08 16:33:59,649 - DEBUG - Using selector: EpollSelector
2025-04-08 16:34:00,167 - INFO - clients validated successfully
2025-04-08 16:34:00,167 - WARNING - DDR verification skipped.
2025-04-08 16:34:00,167 - INFO - Starting import...
               --omitted progress bars-- 
2025-04-08 16:34:00,371 - INFO - Finished getting resources. Successes: 1, Failures: 0, Skipped: 0, Filtered: 0
2025-04-08 16:34:00,372 - INFO - importing individual resource items
2025-04-08 16:34:00,550 - DEBUG - Sent metrics to destination for dashboard_lists
               --omitted progress bars--                                               
2025-04-08 16:34:00,550 - DEBUG - Sent metrics to source for dashboard_lists
               --omitted progress bars--
2025-04-08 16:34:00,553 - INFO - finished importing individual resource items: Successes: 1, Failures: 0, Skipped: 0, Filtered: 19.
2025-04-08 16:34:00,764 - INFO - Finished import

Running diff fails to create the dashboard we wanted to import

docker run --rm -v "$(pwd)/datadog-sync-data:/datadog-sync:rw" \
  -e DD_DESTINATION_API_KEY="${DD_EU_API_KEY}" \
  -e DD_DESTINATION_APP_KEY="${DD_EU_APP_KEY}" \
  -e DD_DESTINATION_API_URL="${DD_EU_SITE_URL}" \
  datadog-sync:latest diffs \
--resources="dashboard_lists" \
--filter "Type=dashboard_lists;Name=name;Value=^Sync EU Test$" \
--verify-ddr-status=false \
--verbose --send-metrics=false

2025-04-08 16:36:44,786 - WARNING - Defaulting to filter Operator `ExactMatch'. Please ensure the filter Value provided is updated as this behavior will be removed in the future. See the official README.md for more information.
2025-04-08 16:36:44,786 - INFO - Using local filesystem to store state files
2025-04-08 16:36:44,833 - DEBUG - Using selector: EpollSelector
2025-04-08 16:36:44,973 - INFO - clients validated successfully
2025-04-08 16:36:44,973 - WARNING - DDR verification skipped.
2025-04-08 16:36:44,973 - INFO - Starting diffs...
2025-04-08 16:36:44,974 - INFO - [dashboard_lists - 548252] - skipping resource: Failed to connect resource. {'dashboards': ['nhi-422-6bk']}
2025-04-08 16:36:44,990 - INFO - Finished diffs
Lingua principale
Python
Stelle
79
Fork
26
Merge medio
22h 1m
PR unite (30g)
25

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DataDog/datadog-sync-cli

Tutte le issue di DataDog/datadog-sync-cli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.