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

[feature]Support grafana charts for Prometheus #1658

Merged
merged 63 commits into from
Sep 3, 2024
Merged

Commits on Mar 16, 2024

  1. Configuration menu
    Copy the full SHA
    dcdb96c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cfb4e91 View commit details
    Browse the repository at this point in the history
  3. [fix]Fix ESLint error.

    zqr10159 committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    8b884d0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4dc34a8 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. Configuration menu
    Copy the full SHA
    66782ca View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Configuration menu
    Copy the full SHA
    954841f View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2024

  1. Merge branch 'master' into feature#grafana

    Signed-off-by: Logic <zqr10159@dromara.org>
    zqr10159 committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    548eb56 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a57b836 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/feature#grafana' into feature#gr…

    …afana
    
    # Conflicts:
    #	web-app/src/app/routes/monitor/monitor.module.ts
    zqr10159 committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    a85bc36 View commit details
    Browse the repository at this point in the history
  4. Update dromara to apache

    zqr10159 committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    f8fba1d View commit details
    Browse the repository at this point in the history
  5. Update dromara to apache

    zqr10159 committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    a9d543c View commit details
    Browse the repository at this point in the history
  6. Update dromara to apache

    zqr10159 committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    ccf234a View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Merge branch 'master' of github.com:dromara/hertzbeat into feature#gr…

    …afana
    
    # Conflicts:
    #	common/src/main/java/org/apache/hertzbeat/common/entity/manager/Monitor.java
    #	web-app/src/app/pojo/Monitor.ts
    #	web-app/src/app/routes/monitor/monitor.module.ts
    zqr10159 committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    4f8349e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'feature#grafana' of github.com:dromara/hertzbeat into f…

    …eature#grafana
    
    # Conflicts:
    #	common/src/main/java/org/apache/hertzbeat/common/entity/manager/Monitor.java
    zqr10159 committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    340a7f4 View commit details
    Browse the repository at this point in the history
  3. [improve]Add licence.

    zqr10159 committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    94bbf28 View commit details
    Browse the repository at this point in the history
  4. [improve]Add licence.

    zqr10159 committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    915f342 View commit details
    Browse the repository at this point in the history
  5. [improve]Add licence.

    zqr10159 committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    4a26c6d View commit details
    Browse the repository at this point in the history
  6. [improve]Add licence.

    zqr10159 committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    4ed2956 View commit details
    Browse the repository at this point in the history
  7. [improve]Add licence.

    zqr10159 committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    34f1da3 View commit details
    Browse the repository at this point in the history
  8. [improve]Add licence.

    zqr10159 committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    84a98e8 View commit details
    Browse the repository at this point in the history
  9. [improve]fix bug.

    zqr10159 committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    876276c View commit details
    Browse the repository at this point in the history
  10. [improve]fix bug.

    zqr10159 committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    c9bf29f View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Merge branch 'master' of github.com:apache/hertzbeat into feature#gra…

    …fana
    
    # Conflicts:
    #	common/src/main/java/org/apache/hertzbeat/common/entity/manager/Monitor.java
    #	common/src/main/java/org/apache/hertzbeat/common/util/JsonUtil.java
    #	manager/pom.xml
    #	manager/src/main/resources/sureness.yml
    #	pom.xml
    #	web-app/src/assets/i18n/en-US.json
    #	web-app/src/assets/i18n/zh-CN.json
    #	web-app/src/assets/i18n/zh-TW.json
    zqr10159 committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    6a010ae View commit details
    Browse the repository at this point in the history
  2. [improve]Update.

    zqr10159 committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    c7b7af5 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Merge branch 'master' of github.com:apache/hertzbeat into feature#gra…

    …fana
    
    # Conflicts:
    #	manager/src/main/resources/application-test.yml
    #	manager/src/main/resources/application.yml
    zqr10159 committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    b41c9b5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8baf9a5 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2024

  1. [improve]Update.

    zqr10159 committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    8137321 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. [feature]Grafana charts.

    zqr10159 committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    6a4f865 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    38fedc7 View commit details
    Browse the repository at this point in the history
  3. [feature]Grafana charts.

    zqr10159 committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    4f38c54 View commit details
    Browse the repository at this point in the history
  4. [feature]Grafana charts.

    zqr10159 committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    5f94994 View commit details
    Browse the repository at this point in the history
  5. [feature]Grafana charts.

    zqr10159 committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    3132a55 View commit details
    Browse the repository at this point in the history
  6. [feature]Grafana charts.

    zqr10159 committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    7d68464 View commit details
    Browse the repository at this point in the history
  7. [feature]Grafana charts.

    zqr10159 committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    5236793 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Merge branch 'master' into feature#grafana

    Signed-off-by: Logic <zqr10159@dromara.org>
    zqr10159 committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    1659482 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Configuration menu
    Copy the full SHA
    efb83dc View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2024

  1. Merge branch 'refs/heads/master' into feature#grafana

    # Conflicts:
    #	web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.ts
    #	web-app/src/app/routes/monitor/monitor-edit/monitor-edit.component.html
    #	web-app/src/app/routes/monitor/monitor-edit/monitor-edit.component.ts
    #	web-app/src/app/routes/monitor/monitor-new/monitor-new.component.html
    #	web-app/src/app/routes/monitor/monitor-new/monitor-new.component.ts
    tomsun28 committed Jul 7, 2024
    Configuration menu
    Copy the full SHA
    84c435c View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. fix json parse error

    Signed-off-by: tomsun28 <tomsun28@outlook.com>
    tomsun28 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    23cfd7f View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into feature#grafana

    Signed-off-by: Logic <zqr10159@dromara.org>
    zqr10159 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    93ffb1e View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. Merge branch 'master' of github.com:apache/hertzbeat into feature#gra…

    …fana
    
    # Conflicts:
    #	manager/src/main/resources/application-test.yml
    #	manager/src/main/resources/sureness.yml
    zqr10159 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    17db026 View commit details
    Browse the repository at this point in the history
  2. ```feat(grafana): integrate Spring RestTemplate for API interactions

    Replace Forest client with Spring's RestTemplate to manage Grafana dashboards and data sources.
    Refactor API endpoints usage to enhance the integration and simplify the codebase for future
    maintainability. Update service and controller layers to handle Grafana service accounts, tokens,
    dashboards, and data sources using the Spring ecosystem.
    
    BREAKING CHANGE: Replace all Forest client usages with RestTemplate which might affect custom
    error handling and request/response interception mechanisms. Ensure to test the new integrationthoroughly, especially for edge cases and error scenarios.
    
    Client code examples for creating dashboards and data sources have been updated. Review and
    update any existing integration scripts or client libraries accordingly.
    
    Related to issue
    ```
    zqr10159 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    631eb34 View commit details
    Browse the repository at this point in the history
  3. ```feat(grafana): integrate dashboard upload and datasource management

    Implement the ability to upload Grafana dashboard JSON files through the monitor form,
    enhancing the integration between Hertzbeat and Grafana. This feature allows users to
    easily configure and visualize monitoring data within Grafana.
    
    Additionally, refactor the datasource and service account management to use a moreefficient header creation method. This change simplifies the process of authenticating
    requests to the Grafana API.
    
    BREAKING CHANGE: The datasource and service account creation endpoints now expect
    Base64 encoded credentials in the Authorization header. Adjustments may be required
    for external systems relying on the previous implementation.
    ```
    zqr10159 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    c6fe705 View commit details
    Browse the repository at this point in the history
  4. ```refactor(grafana): organize imports and constants, improve readabi…

    …lityThe code imports have been organized, and constants have been grouped together to improvethe readability in several classes within the grafana module. Excessive whitespace has also
    
    been removed to ensure a cleaner and more standardized code appearance.
    ```
    zqr10159 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    1f7b2f6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7bbfb8b View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. ```docs: update license headers in grafana module Java files

    Update the license headers for the Grafana module files to reflect the Apache License 2.0.
    Ensure that all contributor license agreements are in place and verify the copyright ownership
    before proceeding with the update.
    
    BREAKING CHANGE: All dashboard controllers and services now adhere to the updated licensing
    agreement. Review the NOTICE file for detailed information regarding copyright ownership and
    permissions.```
    zqr10159 committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    8f8dd2f View commit details
    Browse the repository at this point in the history
  2. ```fix(grafana): remove forest HTTP client integration

    Due to the integration of the new backend, the forest HTTP client is no longer required
    and has been removed from the Grafana module dependencies. This simplifies the projectstructure and eliminates the need for managing an additional HTTP client library.
    ```
    zqr10159 committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    c01a225 View commit details
    Browse the repository at this point in the history
  3. refactor(grafana): remove HTTP prefix handling from URLs

    Remove the handling of HTTP prefixes from grafana URLs across the application, as the
    GrafanaConfiguration class now handles it. This change avoids redundancy and potential
    mistakes in removing the prefix at multiple points in the application.
    zqr10159 committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    9304841 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6fcc1a9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5bef277 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. fix ci

    zqr10159 committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    72b32dd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    362e51c View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2024

  1. Configuration menu
    Copy the full SHA
    63cea67 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2024

  1. refactor(grafana): update datasource service methods and adjust uploa…

    …d list display
    
    Change the return type of the createDatasource and deleteDatasource methods in the
    DatasourceService to void, removing the ResponseEntity. This simplifies the method
    signatures and aligns them with the updated requirements.
    
    Also, modify the monitor-form component to show the upload list for improved user
    feedback in file selection steps of the monitor form process.
    zqr10159 committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    bce106a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    11878f4 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. ```feat(grafana): add instance identifier to dashboard URL and stream…

    …line dashboard deletion
    
    - Incorporate a unique instance identifier into the Grafana dashboard URL to support
      individualized access. This enhancement involves modifying the URL construction to include
      the `INSTANCE` parameter followed by the `monitorId`.
    
    - Streamline the dashboard deletion process by moving the call to `dashboardDao.deleteByMonitorId`
      outside of the try-catch block, ensuring that dashboard deletion from the database is always
      attempted regardless of the API call's outcome. This change simplifies dashboard lifecycle
      management and helps maintain data consistency.
    
    Additionally, correct the comments in `GrafanaInit` to reflect the logical step order in the
    initialization sequence, improving code readability.
    ```
    zqr10159 committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c012ae8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3855c9d View commit details
    Browse the repository at this point in the history
  3. refactor(grafana): streamline dashboard deletion logic

    Refactor the dashboard deletion logic in the grafana module to simplify the code and
    remove unnecessary return statements. The method now ensures that only the relevant
    dashboard is deleted, even when multiple dashboards with the same UID exist.
    zqr10159 committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    68c570f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    59172f7 View commit details
    Browse the repository at this point in the history
  5. ```fix(grafana): correct dashboard URL formatting and constant defini…

    …tion
    
    Adjust the Grafana dashboard URL formatting in DashboardService to properly handle the
    concatenation and spacing. Also, correct the definition of the INSTANCE constant in
    CommonConstants to ensure consistency and avoid potential errors in token formatting.
    
    The changes ensure the URL construction follows the intended structure and the INSTANCE
    constant adheres to the project's coding standards.
    ```
    zqr10159 committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    36a2adc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    32c3261 View commit details
    Browse the repository at this point in the history
  7. refactor(grafana): replace GrafanaConfiguration with GrafanaPropertie…

    …sChange property access pattern from GrafanaConfiguration to GrafanaProperties for
    
    consistency with other modules and to align with project property management standards.
    This update affects several services and controllers that previously used the older
    configuration pattern.
    
    BREAKING CHANGE: Replaced GrafanaConfiguration with GrafanaProperties. This may affect
    other parts of the system depending on the previous configuration class, so ensure to
    check all occurrences and make necessary adjustments.
    zqr10159 committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    e93bda1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d14b4ce View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    959c75e View commit details
    Browse the repository at this point in the history