From 982dfd1798898e1ac20499b6f8a54ee0953c352d Mon Sep 17 00:00:00 2001 From: shivaraj-bh Date: Sun, 19 May 2024 17:26:57 +0530 Subject: [PATCH] chore(example): remove grafana-tempo example The configuration to use grafana-tempo with grafana is already present at https://github.com/juspay/services-flake/blob/main/doc/tempo.md --- example/grafana-tempo/flake.lock | 105 ------------------------------- example/grafana-tempo/flake.nix | 42 ------------- example/grafana-tempo/justfile | 2 - 3 files changed, 149 deletions(-) delete mode 100644 example/grafana-tempo/flake.lock delete mode 100644 example/grafana-tempo/flake.nix delete mode 100644 example/grafana-tempo/justfile diff --git a/example/grafana-tempo/flake.lock b/example/grafana-tempo/flake.lock deleted file mode 100644 index 7544fc6..0000000 --- a/example/grafana-tempo/flake.lock +++ /dev/null @@ -1,105 +0,0 @@ -{ - "nodes": { - "flake-parts": { - "inputs": { - "nixpkgs-lib": "nixpkgs-lib" - }, - "locked": { - "lastModified": 1715865404, - "narHash": "sha256-/GJvTdTpuDjNn84j82cU6bXztE0MSkdnTWClUCRub78=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "8dc45382d5206bd292f9c2768b8058a8fd8311d9", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "flake-parts", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1716097317, - "narHash": "sha256-1UMrLtgzielG/Sop6gl6oTSM4pDt7rF9j9VuxhDWDlY=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "8535fb92661f37ff9f0da3007fbc942f7d134b41", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs-lib": { - "locked": { - "lastModified": 1714640452, - "narHash": "sha256-QBx10+k6JWz6u7VsohfSw8g8hjdBZEf8CFzXH1/1Z94=", - "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/50eb7ecf4cd0a5756d7275c8ba36790e5bd53e33.tar.gz" - }, - "original": { - "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/50eb7ecf4cd0a5756d7275c8ba36790e5bd53e33.tar.gz" - } - }, - "process-compose-flake": { - "locked": { - "lastModified": 1715063745, - "narHash": "sha256-kO8gcRHfuKIlsGmFoHUF4lD3CfrRBymIlG2R3OHBEjQ=", - "owner": "Platonic-Systems", - "repo": "process-compose-flake", - "rev": "32c069e7ef436b4325ee36503cd02b2863eede53", - "type": "github" - }, - "original": { - "owner": "Platonic-Systems", - "repo": "process-compose-flake", - "type": "github" - } - }, - "root": { - "inputs": { - "flake-parts": "flake-parts", - "nixpkgs": "nixpkgs", - "process-compose-flake": "process-compose-flake", - "services-flake": "services-flake", - "systems": "systems" - } - }, - "services-flake": { - "locked": { - "dirtyRev": "9fc3e72216aa5b446add37c3c5a3e6de40c0c22a-dirty", - "dirtyShortRev": "9fc3e72-dirty", - "lastModified": 1715582151, - "narHash": "sha256-CWzg2KnFanfz+SLjyDm/IP2TS8t3fdCuvHvAWAfYGR8=", - "type": "git", - "url": "file:///Volumes/Code/services-flake" - }, - "original": { - "type": "git", - "url": "file:///Volumes/Code/services-flake" - } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/example/grafana-tempo/flake.nix b/example/grafana-tempo/flake.nix deleted file mode 100644 index b2a4114..0000000 --- a/example/grafana-tempo/flake.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ - description = "A demo of grafana with tempo"; - inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; - flake-parts.url = "github:hercules-ci/flake-parts"; - systems.url = "github:nix-systems/default"; - process-compose-flake.url = "github:Platonic-Systems/process-compose-flake"; - services-flake.url = "git+file:///Volumes/Code/services-flake"; - }; - outputs = inputs: - inputs.flake-parts.lib.mkFlake { inherit inputs; } { - systems = import inputs.systems; - imports = [ - inputs.process-compose-flake.flakeModule - ]; - perSystem = { self', pkgs, lib, ... }: { - # `process-compose.foo` will add a flake package output called "foo". - # Therefore, this will add a default package that you can build using - # `nix build` and run using `nix run`. - process-compose."default" = { config, ... }: { - imports = [ - inputs.services-flake.processComposeModules.default - ]; - - services.tempo."tp1".enable = true; - services.grafana."gf1" = { - enable = true; - datasources = with config.services.tempo.tp1; [{ - name = "Tempo"; - type = "tempo"; - access = "proxy"; - url = "http://${httpAddress}:${builtins.toString httpPort}"; - }]; - }; - }; - - devShells.default = pkgs.mkShell { - nativeBuildInputs = [ pkgs.just ]; - }; - }; - }; -} diff --git a/example/grafana-tempo/justfile b/example/grafana-tempo/justfile deleted file mode 100644 index ad604f8..0000000 --- a/example/grafana-tempo/justfile +++ /dev/null @@ -1,2 +0,0 @@ -default: - nix run