Skip to content

2.30 (date: 2023-07-25)

Compare
Choose a tag to compare
@Mr-Xzz Mr-Xzz released this 25 Jul 05:59
· 27 commits to master since this release
c3bc113
  • 优化SLS Grafana插件后端结构,现支持加入自定义Resource API功能。
  • 引入gotoSLS功能,用户可以方便地跳转到SLS控制台进行查询,和体验SLS控制台更强大的功能,跳转附带当前Grafana的query、时间信息。在DataSource界面配置roleArn可实现STS跳转,若不配置,则按照正常直接访问逻辑跳转(需要登录控制台)。
    • 注意:若配置STS跳转,为权限安全考虑,需要满足以下两个条件
      • 配置DataSource的accessKey对应的用户,需要有**AliyunRAMReadOnlyAccess**权限
      • 配置DataSource的roleArn,里面的权限策略,必须有且只有**AliyunLogReadOnlyAccess**
    • 原理参考:控制台内嵌及分享
  • 优化xcol的表现形式,现以下拉框的形式规范推荐输入。兼顾兼容性与自定义输入。
  • Variable 编辑页面,SLS DataSource同样引入Monaco Editor,且自动识别grafana版本切换新老显示。
  • 修复xcolycol输入框末尾Tips 在Grafana 8.3.x及以下无法显示的问题。
  • 修复部分适配问题。

image.png
image.png

  • Optimize the back-end structure of the SLS Grafana plug-in, and now support the addition of custom Resource API functions.
  • Introducing the gotoSLS function, users can easily jump to the SLS console to query and experience more powerful functions of the SLS console, and the jump includes the current Grafana query and time information. Configuring roleArn on the DataSource interface can realize STS jumping. If not configured, it will jump according to the normal direct access logic (login to the console is required).
    • Note: If STS redirection is configured, the following two conditions need to be met for permission security considerations:
      • To configure the user corresponding to the accessKey of the DataSource, AliyunRAMReadOnlyAccess permission is required
      • Configure the roleArn of DataSource, the permission policy inside must have and only AliyunLogReadOnlyAccess
    • Principle reference: Console embedding and sharing
  • Optimize the expression form of xcol, and now standardize the recommended input in the form of a drop-down box. Take into account compatibility and custom input.
  • On the Variable editing page, SLS DataSource also introduces Monaco Editor, and automatically recognizes the grafana version to switch between the new and old displays.
  • Fix the problem that Tips at the end of the xcol and ycol input boxes cannot be displayed in Grafana 8.3.x and below.
  • Fix some adaptation problems.