cortex-tools icon indicating copy to clipboard operation
cortex-tools copied to clipboard

Richer diff when running `cortextool diff|sync`

Open gotjosh opened this issue 4 years ago • 4 comments

Right now, when you use the diff command it will only tell you which groups are going to be changed, but does not tell you which individual rules/alerts are changing.

I would be good to have an idea of what exactly is changing when you run this or the sync command.

gotjosh avatar May 22 '20 13:05 gotjosh

To expand on this, it seems that running sync/diff after syncing will also result in updates - I would have expected this to no-op.

gotjosh avatar May 22 '20 14:05 gotjosh

@gotjosh take a look at this line: https://github.com/grafana/cortex-tools/blob/35691e0471880e9eb20562207976c5861df26455/pkg/rules/compare.go#L215

trying to figure out how to increase verbosity with a flag

justinTM avatar Jul 16 '21 20:07 justinTM

@gotjosh it is forced to false always: https://github.com/grafana/cortex-tools/blob/35691e0471880e9eb20562207976c5861df26455/pkg/commands/rules.go#L491

justinTM avatar Jul 16 '21 20:07 justinTM

@gotjosh see #199

justinTM avatar Jul 16 '21 20:07 justinTM